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

Form values reset on render with deep initialValues

Open
#731 4 comments 23 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

### What is the current behavior?

When the form has deep (with nested properties) initialValues and re-renders it will reset all the form state.

### What is the expected behavior?

It should not reset entered values

### Sandbox Link

https://codesandbox.io/s/react-final-form-nested-values-bug-sn0mc

### What's your environment?

"react-final-form": "^6.3.5",
"final-form": "^4.18.7",

### Other information

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.