iamhosseindhv / notistack

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

Consume the queue without immediately dismissing existing snackbars #204

Open ratelChief opened 4 years ago

ratelChief commented 4 years ago

It would be good to manage time that every notistack item is shown.

because if i have 70 items to show and set up maximum count of notistacks to 3, they would scroll like hell till the last three of them.

dnlnegroni commented 4 years ago

Yeah, i agreed with @ratelChief ! I will appreciate too 😊

sneznaovca commented 4 years ago

+1, do you plan fix this the issue?

iamhosseindhv commented 4 years ago

Not an issue but feature request. It’s in my todo list but no rush in implementing it. Any PR welcome

niZmosis commented 3 years ago

A work around is to use transitionDuration: { enter: 325, appear: 3_000, exit: 195 } in the options. The "appear" property is what will make the notification hang around. It comes with it's own problems though, as there is a bug where you can't call closeSnackbar() while in the "appear" transition state. Which is the state you would want to hit close. The enter and exit transitions allow closeSnackbar() to work.

mocharlaaditi commented 1 year ago

i am playing around with queuing two snackbars and waiting for the first one to be dismissed before displaying the second. currently it looks like the persist value on the first snackbar is also not being respected. it closes promptly to display second snack bar instead of waiting for user to dismiss.

dash8846 commented 1 year ago

If keep cursor on notification, it stays there unless we move the cursor, added autoHideDuration too but still getting the same issue. Would be grateful if anyone can help me with it

shahsuvarli commented 7 months ago

did you find any solution?