External createFormControl traces for validation, reset and submit #13947
Unanswered
PerchAnton
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made an external React Hook Form example for interaction-check, a JSONL regression runner I maintain. It uses createFormControl, register, setValue, trigger, reset and handleSubmit without mounting React.
The traces check required/minLength error recovery, dirty/touched reset to defaults, and that invalid submission does not call the success callback. Validation and submission are awaited. Would this be useful as an optional reproduction recipe? DOM events, rendering and async resolvers are outside this example.
Adapter · Three traces · External PR. Tested with react-hook-form 7.91.0: 3 scenarios / 14 steps pass locally on macOS, Node 24.19.0.
From that checkout, with Python 3.10+ and Node 24.19.0:
npm --prefix adapters/javascript ci --ignore-scripts --no-audit --no-fund python interaction_check.py scenarios/react-hook-form/*.json -- node adapters/javascript/main.mjs react-hook-formAll reactions