iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other
https://notistack.com
Other
3.93k stars 298 forks source link

maxSnack doesn't work when call a lot enqueueSnackbars coincidentally #161

Closed tomzaku closed 5 years ago

tomzaku commented 5 years ago

maxSnack doesn't work when calling a lot of enqueueSnackbars coincidentally

Expected Behavior

They should hide snack bar if the current stack bar exceed maxSnack

Current Behavior

Show all notifications without hiding

Steps to Reproduce

Link: https://codesandbox.io/s/notistack-redux-example-gyw9u

1. 2. 3. 4.

Context

Your Environment

Tech Version
Notistack v1.?.?
React
Browser
etc.
iamhosseindhv commented 5 years ago

duplicate #38