Hex Core JS
    Preparing search index...

    Function NavigationConfirmation

    • Renders a Modal asking the user to confirm they want to navigate away from the current page. Only renders when a <NavigationPrompt> is also rendered somewhere in the application and cannot be rendered directly. This component does not need to be used directly ever, instead only use <NavigationPrompt>.

      Note: this is not a regular component as it does not return a JSX element, rather uses ReactDOM to render an element directly.

      Parameters

      • message: string
      • done: (ok: boolean) => void

      Returns void