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

shouldDirtyConsider strange behavior #832

Open
Pouet-- opened this issue Dec 12, 2024 · 0 comments
Open

shouldDirtyConsider strange behavior #832

Pouet-- opened this issue Dec 12, 2024 · 0 comments

Comments

@Pouet--
Copy link

Pouet-- commented Dec 12, 2024

Describe the bug and the expected behavior

Hello,

I am trying to use shouldDirtyConsider property but found a strange behavior, the form is marked as dirty from the start, with form.value == form.initialValue.

Moreover, it never reaches the dirty=false.
When I try to write shouldDirtyConsider as : (name) => false, it does not always return false as the form is sometimes dirty..

Conform version

both in v1.1.5 & v1.2.2

Steps to Reproduce the Bug or Issue

https://stackblitz.com/edit/remix-run-remix-ufjul4tf?file=app%2Froutes%2F_index.tsx

What browsers are you seeing the problem on?

Chrome, Firefox

Screenshots or Videos

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant