Skip to content

Replace deprecated lifecycle componentWillReceiveProps #562

@evoyy

Description

@evoyy

This lifecycle method is in the following components:

https://github.com/react-component/slider/blob/master/src/Slider.jsx
https://github.com/react-component/slider/blob/master/src/Range.jsx

We need to replace it in advance of React 17. Depending on how important performance is considered here, we could simply move the logic to componentDidUpdate at the expense of some extra renders.

https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#migrating-from-legacy-lifecycles

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