Вопрос о redux-form, React js 16.13.1

У меня в React-приложении(React 16.13.1) установлено redux-form(8.3.5), а также компонента обернута в React.StrictMode При работе с формой, выскакивает предупреждение про устарелый метод жизненного цикла:

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: Form(SendForm)

Могу ли я избежать их, кроме как убрать StrictMode или использовать аналог redux-form?


Ответы (0 шт):