Skip to content
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

How to configure multiple provider of notistack instance? #606

Open
MinChanSike opened this issue Jul 6, 2024 · 1 comment
Open

How to configure multiple provider of notistack instance? #606

MinChanSike opened this issue Jul 6, 2024 · 1 comment

Comments

@MinChanSike
Copy link

I would like to show toast message with difference configuration.
Example: normal toast and notification toast.
For normal toast, want to show at the bottom right with maxSnack:5, autoHideDuration: 5000.
For notification toast, want to show at the bottom left with maxSnack: 10, autoHideDuration: null

Anyway to create multiple SnackbarProvider in single application and enqueueSnackbar message to different instance?
Any suggestion please.

Tech Version
Notistack v3.0.1
@braniubojni
Copy link

@MinChanSike hi. Same question. I was able to resolve autoHideDuration. By calling enqueueSnackbar it is possible to provide your custom autoHideDuration prop in the second component. But maxSnack did not found solution for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants