Notistack: Snackbars stop showing after few clicks

Created on 16 May 2020  路  3Comments  路  Source: iamhosseindhv/notistack

Great tool first of all. Thank you for sharing it.

I am testing some login logic and I generated few (~4) Snackbars in a few seconds. I noticed that after that, they stopped showing up altogether.

Expected Behavior

I believe that they should show up all the time unless configured differently.

Current Behavior

After a few clicks, they stop appearing. I also noticed that after the third one (in most of the cases but not always) the fourth one is shown with a few sec delay. After that, no more Snackbars are shown on the screen. In my app maxSnack={3}.

Steps to Reproduce

In codesandbox.io I had to click more times comparing to my app, but eventually (maybe 10-15 times) it also stopped working.

Link:
https://codesandbox.io/embed/eager-einstein-1rno0?fontsize=14&hidenavigation=1&theme=dark

Your Environment

"react-dom": "^16.13.1"
"@material-ui/core": "^4.9.14"
"notistack": "^0.9.14"
Browser: Version 81.0.4044.138 (Official Build) (64-bit)

Most helpful comment

Thanks for reporting this guys.

This bug was introduced by material-ui's latest changes (about a week ago) in handling react-transition-group callbacks.
https://github.com/mui-org/material-ui/issues/21091

Recent changes in v0.9.14 made the bug visible to the end users. Anyhow, it is fixed and going to be published in a few hours.

All 3 comments

I have the same issue. This is new with 0.9.14. If I downgrade to 0.9.13, everything starts working again.

Thanks for reporting this guys.

This bug was introduced by material-ui's latest changes (about a week ago) in handling react-transition-group callbacks.
https://github.com/mui-org/material-ui/issues/21091

Recent changes in v0.9.14 made the bug visible to the end users. Anyhow, it is fixed and going to be published in a few hours.

the same to me锛宨t took me hours to check

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seannguyn picture seannguyn  路  4Comments

iamhosseindhv picture iamhosseindhv  路  7Comments

alexisab picture alexisab  路  5Comments

Mel0nHead picture Mel0nHead  路  5Comments

iamhosseindhv picture iamhosseindhv  路  8Comments