@oneblink/apps-react
    Preparing search index...

    Function useAllowFormNavigation

    • Returns a callback that stops the form with formId prompting about unsaved changes when the host navigates away. Call it after the host action that discarded or persisted those edits has completed, immediately before navigating. Safe to call without a provider or for a form that is not rendered: nothing happens.

      Parameters

      • formId: number

        The id of the form whose unsaved changes prompt to stop.

      Returns () => void