DEV Community

Cover image for BUG: multiple message boxes in antd

BUG: multiple message boxes in antd

Visakh Vijayan
Willing to learn anything and everything exciting. Always awake. Skips food for fun.
Updated on ・1 min read

We use antd in our react project. We saw for some reason they were showing up multiple times on a single event click. We were able to solve it using a config options for the message function.

message.config({maxCount: 1});
Enter fullscreen mode Exit fullscreen mode

This is what you will be needing basically.

Discussion (0)