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

`dirtySinceLastSubmit` doesn't update when fields push/remove

Open
#79 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
210
Forks
69
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?

`meta.dirtySinceLastSubmit` is not updated after `fields.push` or `fields.remove` call. Though not tested yet, I doubt the same problem exists in other fields methods.

### What is the expected behavior?
(See sandbox link)
1. click "Submit" button
2. click "Add a habit" button

Expect the `habits` field array to have `meta.dirtySinceLastSubmit === true`

### Sandbox Link
https://codesandbox.io/s/upbeat-pine-23rt4

### What's your environment?

### 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.