Skip to content

StrictMode warnings for unsafe lifecycle methods #651

Description

@rares-lupascu

Be sure to search for your issue before opening a new one.

Current Behavior

Warning: Unsafe lifecycle methods were found within a strict-mode tree:
    in StrictMode (at src/index.tsx:54)

componentWillReceiveProps: Please update the following components to use static getDerivedStateFromProps instead: Player

componentWillUpdate: Please update the following components to use componentDidUpdate instead: ReactPlayer

Expected Behavior

No warning :)

Steps to Reproduce

  1. Add the player under <React.StrictMode>

Environment

  • URL attempting to play: n/a
  • Browser: n/a
  • Operating system: n/a
  • jsFiddle example: no need

Other Information

n/a

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