Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of keepUnmounted and keepPristine in same setFieldsValues #130

Open
HugoPerard opened this issue Nov 8, 2022 · 0 comments
Open

Use of keepUnmounted and keepPristine in same setFieldsValues #130

HugoPerard opened this issue Nov 8, 2022 · 0 comments
Labels
bug Something isn't working v1

Comments

@HugoPerard
Copy link
Member

HugoPerard commented Nov 8, 2022

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
@HugoPerard HugoPerard added the bug Something isn't working label Nov 8, 2022
@ivan-dalmet ivan-dalmet added the v1 label Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1
Projects
None yet
Development

No branches or pull requests

2 participants