-
Notifications
You must be signed in to change notification settings - Fork 93
Unsafe legacy lifecycles error #70
Comments
@felipe-pereira Please ensure that you are using the latest versions of |
Still have the issue after updating: from package-lock.json "react": { "react-redux": { "react-redux-loading-bar": { I'm using material-ui 1.3.1 and one of their themes/kits (just mentioning in case it helps), also using ssr so no very sure on how to move that setup to codepen to reproduce it. |
same issue im having, with the same version too |
Hi, Same here, I'm facing the same issue with @felipe-pereira. Below are my package dependencies: my full package.json can be found here: https://pastebin.com/V7ngu1xL Kindly, advice/ guide us on how to solve this issue? Thanks |
Hi, Did anyone find the solution to this? I'm facing the same problem. Dependencies: |
in my case this wasn't a must so I just stashed the changes and will try again in some time, if one of you can repro this in a codepen that could help the author fix it |
@felipe-pereira, the error seems to be for
So basically what this means is that the polifyll won't work if your actual version already contains the new component lifecycle API. In that case, we would only need to use the polyfill if it react version doesn't contains the components new API |
@EdoAPP oh ok, so is there a flag to use the polyfill or not that one could use? |
I'm getting this error when loading the page (no need to show the bar):
_Warning: Unsafe legacy lifecycles will not be called for components using new component APIs.
Connect(LoadingBar) uses getDerivedStateFromProps() but also contains the following legacy lifecycles:
componentWillReceiveProps
componentWillUpdate
The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks_
I added the code just as in the examples:
App.jsx --> simple import
Reducer --> same as in "Install the reducer to the store"
showLoading/hideLoading --> as in "Usage without middleware"
React version: "react": "^16.4.0"
Any ideas?
The text was updated successfully, but these errors were encountered: