Skip to content

Wizard Form / Funnel example is not working in codesandbox #1158

@Yoav-ds

Description

@Yoav-ds

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions