Replies: 1 comment
-
dude, make a file in app directory like ToastManager and inside it add this code:
now import it in your page and make a declaration in your page function:
and now wherever you wanna make a toast notification do it like this and call the following function just below it
this way you can set the limit for your toast notifications |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to limit the number of toasts displayed on the screen?
It would be nice to be able to specify the max amount of toasts displayed on screen and dismiss the oldest toast once the max limit is reached, but I couldn't seem to find the prop to do it.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions