Snackbar uses getDerivedStateFromProps() but also contains the following legacy lifecycles
See original GitHub issueHi,
I get the two following errors in the console:
warning.js:33 Warning: Unsafe legacy lifecycles will not be called for components using new component APIs.
WithStyles(Snackbar) uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
componentWillReceiveProps
componentWillUpdate
warning.js:33 Warning: Unsafe legacy lifecycles will not be called for components using new component APIs.
Snackbar uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
componentWillReceiveProps
componentWillUpdate
Your Environment
Tech | Version |
---|---|
Material-UI | 1.0.0-beta.39 |
React | 16.3.0 |
browser | Chromium 65.0.3325.181 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Snackbar uses getDerivedStateFromProps() but also contains ...
Snackbar uses getDerivedStateFromProps() but also contains the following legacy lifecycles : componentWillReceiveProps componentWillUpdate ...
Read more >Unsafe legacy lifecycles will not be called for components ...
Test uses getDerivedStateFromProps() but also contains the following legacy lifecycles: componentWillReceiveProps.
Read more >A brand new website interface for an even better experience!
Snackbar uses getDerivedStateFromProps () but also contains the following legacy lifecycles.
Read more >Lifecycle, state, getDerivedStateFromProps and Hooks - Medium
We are going to discuss in this article about a very common use case : a React component will get new props following...
Read more >Snackbar · React Native Paper
Snackbars provide brief feedback about an operation through a message at the bottom of the screen. Snackbar by default uses onSurface color from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same as before, but it is also mentioning
ButtonBase
Gotcha. Can you point me at a repro in Code Sandbox?