-
-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple snackbars at once #14
Comments
Happy you like the project @ysgk ❤️ I'll investigate this to make sure flashes.forEach(item => {
setTimeout(() => this.props.enqueueSnackbar(item), 1)
}); |
#15 is on its way and will fix this issue. so you'll be able to do something like: componentDidMount = () => flashes.forEach(this.props.enqueueSnackbar); |
@ysgk this fix is available in the latest version. |
Thank you for your kindness. It works fine now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, thanks for this project 😍
I want show multiple flash messages on page load, but I can't do that. (Maybe because notistack uses
new Date().getTime()
for its component's key prop?)I found a workaround for this, but I think this is a little hacky.
Do you have any plan to support such a case?
The text was updated successfully, but these errors were encountered: