Skip to content

React-json-tree: Update UNSAFE_componentWillReceiveProps lifecycle hook. #635

Open
@BrunoFenzl

Description

@BrunoFenzl

I could not find any related issues, so please forgive me if this was already addressed somewhere.
React throws following warning when using react-json-tree:

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

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state

Please update the following components: JSONNestedNode, JSONTree

I believe I could fix this and update those components. Is this in your roadmap?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions