Skip to content

Use of keepUnmounted and keepPristine in same setFieldsValues #130

Open

Description

Describe the bug

When I do the following code

setFiedsValues(values, { keepUnmounted: true, keepPristine: false });

the pristine state do not change, it's stay to true

CodeSandbox

https://codesandbox.io/s/lucid-curran-fzy8qq?file=/src/App.tsx

To Reproduce

  1. Have a form with pristine true
  2. Make a setFieldsValues with keepUnmounted: true and keepPristine: false
  3. Look at the form pristine value

Expected behavior

keepPristine: false should allow form isPristine value to be false after setFieldsValues

Desktop (please complete the following information)

  • OS: macos
  • Browser: Arc
  • Version 0.74.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions