useNavigations

A hook to get all global navigations.

import { useNavigations } from 'react-sprout';

let navigations = useNavigations();
  • Name
    navigations
    Type
    Array
    Description

    An array of busy navigations.

navigations

  • Name
    navigations.loading
    Type
    boolean
    Description

    A boolean indicating whether a navigation is loading.

  • Name
    navigations.detail
    Description

    The event details of the navigation

navigation detail

  • Name
    navigations.detail.request
    Type
    Request
    Description

    The navigation request

  • Name
    navigations.detail.intent
    Type
    string
    Description

    The navigation intent ("fetch", "reload", or "transition").

  • Name
    navigations.detail.data
    Description
    The navigation data.