BUG: multiple message boxes in antd

Visakh Vijayan - Jun 4 '21 - - Dev Community

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.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .