Skip to content

React final form calculate makes dirty form in async initalValues #28

@rzkhosroshahi

Description

@rzkhosroshahi

Are you submitting a bug report or a feature request?

I guess feature request.

What is the current behavior?

Hi, thanks for making this handy form package :)
I have a component that makes initialValue from API and also I'm using final form calculate to change some field values. in the initial loading after data fetched calculate function make the form to dirty.

What is the expected behavior?

I expected when initalValues change by final form calculate in this situation my form don't be dirty

Sandbox Link

https://codesandbox.io/s/38rorvr8kq

What's your environment?

"react-final-form": "^4.1.0",
"react-final-form-arrays": "^2.0.3",
"final-form": "^4.12.0",
"final-form-arrays": "^1.1.2",
"final-form-calculate": "^1.3.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions