question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snackbar uses getDerivedStateFromProps() but also contains the following legacy lifecycles

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
psamimcommented, Apr 2, 2018

Same as before, but it is also mentioning ButtonBase

image

1reaction
bvaughncommented, Mar 30, 2018

Gotcha. Can you point me at a repro in Code Sandbox?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found