Skip to content

How to reset the form to un-submitted / initial state after successful submit? #57

@kravemir

Description

@kravemir

Based on docs, submitted is filled by revalidation:

submitted: set to true once the form has been submitted.

I'm using the same form to allow an user to submit new entries repetitively. After successful submission I need to reset the form to the initial state, as if wasn't even touched:

  • submitted = false,
  • form = initialState,
  • and other internal state,...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions