Axinom Mosaic Libraries
    Preparing search index...

    Interface NavigationAwareStationProps

    interface NavigationAwareStationProps {
        onNavigate?: () => boolean | Promise<boolean>;
        restrictNavigation?: boolean;
    }
    Index

    Properties

    onNavigate?: () => boolean | Promise<boolean>

    A callback that can be used to perform some work before navigating. It should return true if navigation can continue afterwards or false if the navigation attempt should be canceled.

    Note: the function should be wrapped by a useCallback ot avoid unnecessary rendering cycles.

    restrictNavigation?: boolean

    When set to true, each navigation attempt to an external URL will result in a warning by the browser and every in-app navigation will trigger a call to onNavigate().