edmundhung / conform

A type-safe form validation library utilizing web fundamentals to progressively enhance HTML Forms with full support for server frameworks like Remix and Next.js.
https://conform.guide
MIT License
1.8k stars 101 forks source link

[1.1.0] `resetForm: true` doesn't reset `unstable_useControl` values #673

Closed halljus closed 2 months ago

halljus commented 3 months ago

Describe the bug and the expected behavior

As of Conform v1.1.0 (and through v1.1.4), resetting the form doesn't seem to reset unstable_useControl values (unless, possibly, it's the only field in the form - see repro).

Conform version

v1.1.4

Steps to Reproduce the Bug or Issue

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

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

Screenshots or Videos

No response

Additional context

No response

edmundhung commented 3 months ago

I think I know the issue. I will try to get a fix out asap. Thanks!