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

Form InitialValues overrides Field InitialValue

Open
#474 2 comments 3 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?

- I have some Form initialValues fetched on component did mount. Initial State is empty array.
- I have some Fields initialValue set for each of my form fields.
- Before the fetch of of my Form initialValues the Field initialValue are correct.
- After fetch has completed the initialValues of the Field are set to overwritten with Form InitialValues.

### What is the expected behavior?

- Field InitialValue should never be overwritten by the Form InitialValues.

### What's your environment?

"final-form": "^4.12.0",
"react-final-form": "^5.0.1",

### Example
https://codesandbox.io/embed/react-final-form-simple-example-qb57e?fontsize=14

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.