moroshko/react-autosuggest

Warning about `componentWillReceiveProps` in React's Strict Mode

Aberta

#624 aberto em 16 de mar. de 2019

 (9 comentários) (54 reações) (0 responsável)JavaScript (569 forks)batch import
help wanted

Métricas do repositório

Stars
 (5.940 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador