-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Using deprecated material-ui syntax 'theme.spacing.unit' #169
Comments
Thanks for reporting @ryan-gray. fix has been released |
Great, thank you! |
Which release is that? I only see 0.9.1. |
Its v0.9.2 |
I'm still reproducing it in the code sandbox with 0.9.2: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using using enqueueSnackbar(), there is an error thrown in the console as show below.
This should be updated to use theme.spacing(y) instead of theme.spacing.unit * y, as described in the error message
Expected Behavior
No error is thrown from notistack when enqueuing a snackbar.
Current Behavior
An error is thrown when enqueuing a snackbar related to deprecated usage of material-ui's spacing API.
Steps to Reproduce
Link: https://codesandbox.io/s/notistack-simple-example-eo4ur?fontsize=14
Context
When material-ui removes this API, it could cause a breaking change for notistack.
Your Environment
The text was updated successfully, but these errors were encountered: