Snackbars item opened by notistack should not change the global theme, and it's not doing it, but documentation can lead users to wrong nesting.
Take the codesanbox link below. I'm more or less reproducing what docs says:
<SnackbarProvider maxSnack={3}>
<App />
</SnackbarProvider>
...but I've also a custom ThemeProvider
https://codesandbox.io/s/notistack-issue-3673u
The issue is easily fixable: the SnackbarProvider component should be wrapped _inside_ the custom ThemeProvider, but documentation is not helping.
I think that a clear indication about this can save debug time or issue report.
Thanks @keul 鉂わ笍
The following line has been added to the docs website:
Note: If you're using material-ui ThemeProvider, make sure SnackbarProvider is a child of it.
Hopefully it be useful in future.
Most helpful comment
Thanks @keul 鉂わ笍
The following line has been added to the docs website:
Hopefully it be useful in future.