Skip to content
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

Open
jfrolich opened this issue Nov 11, 2018 · 14 comments
Open

Uses legacy componentWillMount #54

jfrolich opened this issue Nov 11, 2018 · 14 comments

Comments

@jfrolich
Copy link

This component does not work in concurrentMode

@lourd
Copy link
Collaborator

lourd commented Nov 16, 2018

Hey Jaap, thanks for noticing and filing an issue!

I went ahead and started work at resolving this on the use-did-mount branch. Can you please review it and also add a test case that makes sure the library is now concurrent mode compliant? Just fork from my branch.

Let me know if you have any questions. Thanks!

@jfrolich
Copy link
Author

Not sure I have time to write a test, I don't use this library directly, just wanted to report it :)

@tyscorp
Copy link

tyscorp commented Nov 26, 2018

Changing from componentWillMount to componentDidMount isn't enough as described here: #40

@seansfkelley
Copy link

This also triggers warnings when using StrictMode.

@mikecousins
Copy link

This now barfs warnings in React v16.9.

@lourd
Copy link
Collaborator

lourd commented Aug 9, 2019

I'm gonna ping Dan on Twitter and ask if he can chime in here.

@gaearon
Copy link
Owner

gaearon commented Aug 9, 2019

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.

@mikecousins
Copy link

mikecousins commented Aug 9, 2019

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.

@danielweck
Copy link

Sorry, I posted my previous comment in the wrong repo! :)

@kud
Copy link

kud commented Aug 26, 2019

I'm here only because I also use react-document-title.

@mikecousins ' solution sounds the idea!

@verheyenkoen
Copy link

I see commit 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?

@lourd
Copy link
Collaborator

lourd commented Sep 17, 2019 via email

ZauberNerd added a commit to untool/untool that referenced this issue Oct 15, 2019
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
ZauberNerd added a commit to untool/untool that referenced this issue Oct 15, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Oct 21, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Oct 21, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Oct 22, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Oct 23, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Oct 24, 2019
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`
github-actions bot pushed a commit to untool/untool that referenced this issue Oct 28, 2019
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`
github-actions bot pushed a commit to untool/untool that referenced this issue Nov 4, 2019
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`
github-actions bot pushed a commit to untool/untool that referenced this issue Nov 7, 2019
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`
herschel666 pushed a commit to untool/untool that referenced this issue Nov 25, 2019
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`
ZauberNerd added a commit to untool/untool that referenced this issue Nov 27, 2019
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`
herschel666 pushed a commit to untool/untool that referenced this issue Dec 4, 2019
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`
@codeaid
Copy link

codeaid commented Jun 10, 2020

So does this issue that was opened back in 2018 have any resolution? React helmet is throwing Using UNSAFE_componentWillMount in strict mode is not recommended and it seems it's because of this library.

@kud
Copy link

kud commented Jun 10, 2020

-> https://github.com/staylor/react-helmet-async

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants