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

ReactNode can no longer be used as a snackbar message #548

Closed
sodenn opened this issue Mar 8, 2023 · 1 comment · Fixed by #549
Closed

ReactNode can no longer be used as a snackbar message #548

sodenn opened this issue Mar 8, 2023 · 1 comment · Fixed by #549

Comments

@sodenn
Copy link

sodenn commented Mar 8, 2023

I noticed that it is no longer possible to use a ReactNode as a snackbar message after updating to v3. In v2 there was a SnackbarMessage that could be string or a ReactNode. This was useful for displaying formatted text in an easy way:

enqueueSnackbar(<>That was <strong>easy!</strong></>);

Is there another way to do this in v3?

@iamhosseindhv
Copy link
Owner

Thanks for reporting - this has been published as v3.0.1.

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

Successfully merging a pull request may close this issue.

2 participants