documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Wizard Form / Funnel example is not working in codesandbox

Open Yoav-ds opened this issue 5 months ago • 1 comments

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.

Yoav-ds avatar Jul 10 '25 08:07 Yoav-ds

This is due to new version of little-state-machine

unclebay143 avatar Sep 09 '25 10:09 unclebay143