Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Warning: Using UNSAFE_componentWillReceiveProps in strict mode #155

Open
Rmadusanka opened this issue Apr 23, 2020 · 0 comments · May be fixed by #162
Open

Warning: Using UNSAFE_componentWillReceiveProps in strict mode #155

Rmadusanka opened this issue Apr 23, 2020 · 0 comments · May be fixed by #162

Comments

@Rmadusanka
Copy link

index.js:1 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: Scrollspy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant