final-form / final-form/react-final-form

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

Open
#797 1 comment 11 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### 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](https://user-images.githubusercontent.com/25201835/82320163-7fd87080-99db-11ea-828f-843b423e3557.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.