Skip to content

Update unsafe lifecycles #134

@diegohaz

Description

@diegohaz

When using react-codemirror2 within <StrictMode /> or with React v16.9.0, it shows a few warnings on the console:

Warning: componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.

Please update the following components: Controlled

Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.

Please update the following components: Controlled

Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions