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

Using UNSAFE_componentWillMount in strict mode is not recommended #80

Open
OlegPhenomenon opened this issue Jun 4, 2021 · 1 comment

Comments

@OlegPhenomenon
Copy link
Contributor

OlegPhenomenon commented Jun 4, 2021

Warning: Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.

* Move code with side effects to componentDidMount, and set initial state in the constructor.

Please update the following components: SideEffect(NullComponent)

Updating react-hemlet to version 6.0.1 does not solve the problem.
bbc/simorgh#3893 (comment)

But judging by the comments, the library react-helmet-async allows to solve the problems

nfl/react-helmet#623
nfl/react-helmet#548

https://www.npmjs.com/package/react-helmet-async

@pacocom
Copy link

pacocom commented Feb 23, 2022

I have the same problem!!

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

No branches or pull requests

2 participants