moroshko/react-autosuggest

Warning about `componentWillReceiveProps` in React's Strict Mode

Open

#624 ouverte le 16 mars 2019

Voir sur GitHub
 (9 commentaires) (54 réactions) (0 assignés)JavaScript (637 forks)batch import
help wanted

Métriques du dépôt

Stars
 (5 936 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

React's Strict Mode warns about "Unsafe lifecycle methods were found within a strict-mode tree".

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

https://github.com/moroshko/react-autosuggest/blob/d626cef720df0ed5a4c7df4d539836b86bda6afa/src/Autosuggest.js#L124-L143

Guide contributeur