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

Strict Mode compatibility: removing componentWillReceiveProps #43

@NoriSte

Description

@NoriSte

In order to fully support React Strict mode componentWillReceiveProps should be renamed or, better, replaced at all. Putting all its logic into componentDidUpdate (before the this.scrollbar.update() code) is trivial (and I'd more than happy doing to do that) but I'd like to know if there are some reasons that must be considered before doing that.

This would solve the following warning

Warning: Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Thanks
Stefano

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