-
Notifications
You must be signed in to change notification settings - Fork 77
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
Uses legacy componentWillMount #54
Comments
Hey Jaap, thanks for noticing and filing an issue! I went ahead and started work at resolving this on the Let me know if you have any questions. Thanks! |
Not sure I have time to write a test, I don't use this library directly, just wanted to report it :) |
Changing from |
This also triggers warnings when using |
This now barfs warnings in React v16.9. |
I'm gonna ping Dan on Twitter and ask if he can chime in here. |
I’ll take a look on Monday if I don’t forget. However this whole library doesn’t really make sense to me anymore so I’d encourage migrating away from these patterns. For example it wouldn’t work with a streaming renderer. Something using context would probably make more sense. |
Yeah, it's used in react-document-title. So I guess we'll need to get away from using that or rewrite react-document-title away from react-side-effect. react-helmet also uses it. |
Sorry, I posted my previous comment in the wrong repo! :) |
I'm here only because I also use @mikecousins ' solution sounds the idea! |
I see commit f75bc96 already added the Not sure if this makes any sense but I just locally replaced that method name with |
Unfortunately not, I believe there's just a coverage gap in the tests
regarding mounting order. There's discussion in another issue or PR where
we figured that out.
…On Tue, Sep 17, 2019, 9:26 AM Koen Verheyen ***@***.***> wrote:
I see commit f75bc96
<f75bc96>
already added the UNSAFE_ prefix to the componentWillMount method to
suppress the warning for this React major version.
Not sure if this makes any sense but I just locally replaced that method
name with componentDidMount (as suggested by the warning message) and all
tests still pass. Could that be enough to fix this issue as a whole?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#54?email_source=notifications&email_token=AAPLJZGUEHJBWFQCNANAVB3QKDLGRA5CNFSM4GDCIF22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD64QOBQ#issuecomment-532219654>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPLJZCADDBXAYRGASW2INLQKDLGRANCNFSM4GDCIF2Q>
.
|
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
The https://github.com/nfl/react-helmet repository seems fairly dead, there are a lot of open issues and PRs and not many releases / commits recently. Also the author of the underlying `react-side-effect` library discourages its usage: gaearon/react-side-effect#54 (comment) The npm numbers verify, that react-helmet-async now has more downloads than react-helmet: - https://www.npmjs.com/package/react-helmet - https://www.npmjs.com/package/react-helmet-async Read more: - nfl/react-helmet#465 - gaearon/react-side-effect#40 BREAKING CHANGE: Replace `react-helmet` with `react-helmet-async`
So does this issue that was opened back in 2018 have any resolution? React helmet is throwing |
This component does not work in concurrentMode
The text was updated successfully, but these errors were encountered: