Hiyve Components - v1.0.0
    Preparing search index...

    Interface NavigationGuardOptions

    Options for useNavigationGuard.

    interface NavigationGuardOptions {
        active: boolean;
        onConfirmLeave?: () => void;
    }
    Index

    Properties

    active: boolean

    Whether the guard is active. When false, navigation is unblocked.

    onConfirmLeave?: () => void

    Called when the user confirms they want to leave. Use this to clean up (disconnect, save state) and navigate away. If omitted, the browser simply navigates back.