Skip to content

Using UNSAFE_componentWillMount in strict mode is not recommended #80

@OlegPhenomenon

Description

@OlegPhenomenon
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions