final-form / react-final-form

🏁 High performance subscription-based form state management for React
https://final-form.org/react
MIT License
7.38k stars 480 forks source link

FormSpy onChange causes warning "Cannot update a component while rendering a different component" #797

Open weberlance opened 4 years ago

weberlance commented 4 years ago

Are you submitting a bug report or a feature request?

Bug report

Sandbox Link

https://codesandbox.io/s/final-form-spy-onchange-xxnem?file=/src/App.js

What's your environment?

"final-form": "4.19.1", "react": "16.13.1", "react-final-form": "6.4.0",

A warning appears only during the first render.

formspy_onCange_issue

weberlance commented 3 years ago

809