If the shouldHideAfterDelay prop is set to false and the MessageBar is not closed, a second call of showAlert() while the container component is re-rendered (say for example as for a refresh) causes a second blue (default, info) message bar to be displayed on the top of the screen.
This behavior appears for example if the showAlert() method is called as result of an async call to refresh the view.
If the
shouldHideAfterDelay
prop is set tofalse
and the MessageBar is not closed, a second call ofshowAlert()
while the container component is re-rendered (say for example as for a refresh) causes a second blue (default, info) message bar to be displayed on the top of the screen.This behavior appears for example if the
showAlert()
method is called as result of an async call to refresh the view.A minimal example is available at this snack
(here the central part:)