You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
If you display a toast, then change routes multiple times in quick succession (like by clicking around through the navigation), react-toastify will copy any displayed toasts for the new route. As it does this for multiple routes, it is very easy for react toastify to lose track of the toast that is currently displayed, then it becomes impossible to hide because:
Firefox: can't access property "removalReason", c.get(...) is undefined
Chrome: Uncaught TypeError: Cannot set properties of undefined (setting 'removalReason')
Safari: TypeError: undefined is not an object (evaluating 'c.get(u).removalReason = D')
at
What is the expected behavior?
Toast is always closeable, and will still close itself when its timer runs out
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react 18.3.1
react-toastify ^11.0.2
Firefox on MacOS AND Chrome on MacOS AND Safari on MacOS
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
If you display a toast, then change routes multiple times in quick succession (like by clicking around through the navigation), react-toastify will copy any displayed toasts for the new route. As it does this for multiple routes, it is very easy for react toastify to lose track of the toast that is currently displayed, then it becomes impossible to hide because:
Firefox:
can't access property "removalReason", c.get(...) is undefined
Chrome:
Uncaught TypeError: Cannot set properties of undefined (setting 'removalReason')
Safari:
TypeError: undefined is not an object (evaluating 'c.get(u).removalReason = D')
at
What is the expected behavior?
Toast is always closeable, and will still close itself when its timer runs out
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react 18.3.1
react-toastify ^11.0.2
Firefox on MacOS AND Chrome on MacOS AND Safari on MacOS
The text was updated successfully, but these errors were encountered: