Skip to content

fix(react): form useForm hook#62

Merged
wangdicoder merged 2 commits intomasterfrom
fix/form-useform-hook
Mar 21, 2026
Merged

fix(react): form useForm hook#62
wangdicoder merged 2 commits intomasterfrom
fix/form-useform-hook

Conversation

@wangdicoder
Copy link
Owner

No description provided.

useForm was creating a new FormInstance on every render instead of
preserving it with useRef. This caused validation and field values to
be lost when the parent component re-rendered.

Also adds a multi-step registration form demo showcasing per-step
validation with the form instance.
@wangdicoder wangdicoder merged commit ee696d0 into master Mar 21, 2026
1 check passed
@github-actions github-actions bot mentioned this pull request Mar 21, 2026
@wangdicoder wangdicoder deleted the fix/form-useform-hook branch March 22, 2026 10:33
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

Successfully merging this pull request may close these issues.

1 participant