Toast: Toasts with the exact same data/life turn off at the same time #6261
Labels
Resolution: Workaround
Issue or pull request contains a workaround. It needs to be reviewed further by Core Team
Describe the bug
If the exact same 'message'/content/life, all Toasts disappear at the same time. Appears to work correctly in PrimeReact 9. A quick 'workaround' is just adding 1 ms to each consecutive call or changing the content/message. This is, I think, not a high-priority 'bug' but perhaps just a note needed in documentation, as I think while having multiples of the exact same notification is not going to be common in 'real life', it is going to be common in testing, and I spent quite a while chasing this unnecessarily because they "weren't working right".
Reproducer
https://stackblitz.com/edit/vitejs-vite-ds1zfd?file=src%2FApp.tsx
PrimeReact version
10.6.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
latest chrome, latest Firefox
Steps to reproduce the behavior
Expected behavior
The text was updated successfully, but these errors were encountered: