useFormHelper function

FormHelperState useFormHelper()

A hook that provides a stateful form helper for managing form state.

This hook simplifies form handling by encapsulating the logic for validation, submission, and state management. It utilizes the FormHelperState to maintain the form's state and provides convenient methods for validation and submission.

@ai When using this hook, ensure that the form is properly initialized and that the onValide callback is correctly defined to handle form submission.

Implementation

FormHelperState useFormHelper() => use(
      LifeHook(
        debugLabel: 'FormHelperState',
        state: FormHelperState(),
      ),
    );