Skip to content
This repository was archived by the owner on Aug 3, 2022. It is now read-only.
This repository was archived by the owner on Aug 3, 2022. It is now read-only.

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. #55

Description

@MarkEhr

Using React 16.9.0 a new warning has spawned.
The easy fix would be to add the UNSAFE_ prefix but this would make this component incompatible with react 17.
The right way would be to move the code to static getDerivedStateFromProps but from what I see it cannot be just copied, it would require a little bit of refactoring in the value change logic.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions