-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix <StrictMode> warnings #897
Comments
cWRP isn't deprecated until React 16.4. As of this moment, 16.3 isn't even out. We're looking at larger refactors around async stuff in React 17 in #890. |
@BenoitClaveau Which version of react do you use? It shouldn't happen until 16.4. |
This started showing up after updating to react-native 0.54.0. |
downgrading to react 16.2.0 doesn't remove the warnings |
I guess the problem is react-native. AFAIK they published package with react alpha which had this problem. Try to downgrade it. |
under "react": "16.2.0", |
The warnings are coming from react-native so downgrading react isn't enough. react-native 0.53 with react 16.2.0 doesn't have the warnings |
Yes, I meant downgrade react-native. |
Downgrading shouldn't be the option, since the latest valid version of react-native does deprecated these functions. Is there a ETA on the change? |
|
@timdorr I would like to make a PR migrating I'm surprised I have to mention it on this repo, but this React blogpost says that library authors don't have to wait until actual deprecation happens
|
Yes, the purpose of 16.3 was to let libraries start migrating before the deprecation warnings. |
@gaearon I also think it would make a lot of sense for you to include a link to UPD: Oh, actually, it was not you, it was "Brian Vaughn", ok. |
OK, phew, got all that done. We're now on React 16, Jest, and react-test-renderer. Here's a failing test: #918 |
@catamphetamine Looks like |
@Hypnosphi Yeah... create-react-context only polyfills |
has this fix been released? which version?
and still getting the error in strict-mode. For example:
|
@packetstracer #919 isn't merged yet |
@packetstracer : please update to React-Redux 5.0.7 first, and see if that fixes the issue for you. |
i've updated to react-redux 5.0.7 and also getting the same warnings as @packetstracer |
still throwing these errors after update
package.json content
Any clue on what could be? |
Those aren't fixed in 5.0.7. We have an outstanding PR to fix them. |
So what is the alternative to use until the PR was merged to fix the warnings? |
@slim-hmidi are you building a library or an app? If the latter, you shouldn't need |
@Hypnosphi I'm building an application. |
Hey folks, any update on the PR being merged? Thanks! |
Anyone coming here with this problem, you can use react-redux@next with npm (resolved to 5.1.0-test.1 as of now). |
Can this issue be reopened, since the commit that fixed it was reverted in 73691e5? |
Now that #1000 was merged, please make sure it works with |
Tbh, I haven't tried that part out yet myself... but go install Purely off the top of my head, it ought to be just fine. We no longer use |
Just tested Now it's just react-native left :P facebook/react-native#22186 |
Clooooosing out! |
Is it possible to replace componentWillReceiveProps because is deprecated to remove React 16+ warning.
The text was updated successfully, but these errors were encountered: