-
Notifications
You must be signed in to change notification settings - Fork 660
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
Incompatible with StrictMode #426
Comments
Thank you for posting. We are aware and will look into upgrading. Though to be honest, I haven't looked into it enough to full understand how we are going to fix it without removing react-side-effect. |
I solved my issue by using |
This is now happening in non-StrictMode as well with React v16.9. Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: SideEffect(DocumentTitle) |
I have this issue in Gatsby.js projects, cos it depends on your package under-the-hood, and I can't use react-helmet-async |
Same issue over here! |
This is probably due to the |
Well, it is just a temporary fix, which will silence an issue, but not really fix it. |
There is no "issue" to fix until React 18 or so is released (whenever the |
@ekilah React 17, not 18). Untill this dependency is dependency of this repo, it is a problem for this repo. For me personally this is an issue, cos react-helmet is dependency of gatsby.js, exactly - gatsby-plugin-react-helmet They already consider to switch to react-helmet-async, which already has same amount of weekly installs as react-helmet, but it will be a breaking change for gatsby.js |
@rifaidev any updates when your fix could get released? |
+1, would love to get rid of these warnings on my project if possible |
Can anyone share his experience with using react-helmet-async instead of this repo? I want to change since after upgrade react to latest version- I get this warning |
@NNSTH I switched over to it with no issues, almost a drop-in replacement, just a couple changes required, their README covered it. I don't use any of the SSR/'async' stuff there, just what this repo provided. |
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path
The |
@ekilah What in word UNSAFE doesn't worry you at all? |
@JustFly1984 though this is somewhat off-topic I think we should clear some things up here. First of all, you seem to be ignoring the fact that you were wrong and that I was just correcting your attempt to correct me. Second of all, I'm on this thread for the same reason you are, I was looking for a solution to an obvious thing that should be solved, but your spreading misinformation about when it will be an "issue" and what the issue actually is. Third of all, the only "unsafe" part of using these methods is that the React developers have decided to deprecate them - I believe because they had the potential for misuse - and that, because they are deprecated now, they won't be around forever There isn't anything more dangerous about using them now vs a year ago except the knowledge that they won't be around forever. I haven't once suggested the methods shouldn't be replaced so you can stop trying to argue with someone who isn't opposing your opinion. |
@ekilah thanks for quick response, I'll give it a try. |
so is there any solution to this? can someone just release another beta-6.X.X release so that we can get rid of this warning? |
You can get rid of the warning by forcing Add this in your "resolutions": {
"react-helmet/react-side-effect": "2.1.0"
} ref: https://yarnpkg.com/lang/en/docs/selective-version-resolutions/ |
Maybe it's because I'm using yarn workspaces, it didn't work for me. |
Hey @tmbtech , as upgrading to "react-side-effect": "2.1.0" would obviously solve the issue, is this something you would be willing to do? |
@cwelch5 Would |
@cwelch5 Maybe this issue shouldn't be closed until there is a non-beta version of Do you have a timeline for the final |
I just upgraded to v 6.0.0, and I'm still seeing
Someone said this was fixed in 6.0.0-beta.2. Am I doing something wrong, or is it still not fixed? |
you should try to see if you have multiple versions installed
|
I only have 6.0.0 installed, but I am still seeing this warning. |
I only have 6.0.0 as well, and still have this warning |
Same issue here. Running only 6.0.0 as well |
+1, and React version 16.13.1 |
Maybe try searching your yarn.lock or package-lock.json file for older versions of react-side-effect? That should help you determine which package is requiring it. But it shouldn't be react-helmet if you only have 6.0.0. |
yeah, I've the same problem... ;-( Node v14.2, yarn 1.22. By the |
This issue should be re-opened. On the latest version of React It is no difference in using There is no difference in removing
Using |
I hope they will reopen the issue. it's still happening. |
Hopefully this will be fixed. |
@mobeigi it is not tracked in an open issue |
I'm using |
is there any update with the issue? |
If anyone is just now finding this issue, Unfortunately, it doesn't appear that |
To resolve nfl/react-helmet#426 and remove warning in console due to that issue.
Motivation : nfl/react-helmet#426 (comment) Popularité relative : https://www.npmtrends.com/react-helmet-vs-react-helmet-async
Motivation : nfl/react-helmet#426 (comment) Popularité relative : https://www.npmtrends.com/react-helmet-vs-react-helmet-async
Motivation : nfl/react-helmet#426 (comment) Popularité relative : https://www.npmtrends.com/react-helmet-vs-react-helmet-async
Motivation : nfl/react-helmet#426 (comment) Popularité relative : https://www.npmtrends.com/react-helmet-vs-react-helmet-async
Motivation : nfl/react-helmet#426 (comment) Popularité relative : https://www.npmtrends.com/react-helmet-vs-react-helmet-async
@adamalston unfortunately |
When use inside
<StrictMode>
I got this errorHere is reproducible example https://github.com/stereobooster/react-lingui-example/pull/3/files
<ConcurrentMode><App /></ConcurrentMode>
forces StrictMode check.Related gaearon/react-side-effect#40
The text was updated successfully, but these errors were encountered: