documentation
documentation copied to clipboard
Wizard Form / Funnel example is not working in codesandbox
https://codesandbox.io/p/sandbox/react-hook-form-wizard-form-9pg6j
when trying to go to the next step:
TypeError actions.updateAction is not a function onSubmit /src/Step1.js:11:12 8 | const { register, handleSubmit } = useForm(); 9 | const { actions, state } = useStateMachine({ updateAction }); 10 | const onSubmit = (data) => {
11 | actions.updateAction(data); | ^ 12 | props.history.push("./step2"); 13 | }; 14 | View compiled â–¶ 1 stack frames were collapsed.
This is due to new version of little-state-machine