final-form / final-form/react-final-form
Rerender Field component with value from previous input
- 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**
### What is the current behavior?
When changing rendered Field, form render child with value from previous state.

**Step to reproduce**
1. Click button 'Pass array to notQuery'.
2. Click button 'Press me to change query'.
3. In console we can see two renders as form changes input.name first and than input.value in secound step, forcing 2 renders.
### What is the expected behavior?
Form render child once with new value.
### Sandbox Link
https://codesandbox.io/s/react-example-g4i2g
### What's your environment?
"react-final-form": "^6.3.5",
"react": "^16.9.0",
"react-dom": "^16.9.0"
### Other information
none
Contributor guide
Assessment
This issue has not been assessed yet.