This is a helper hook that returns the state of every fetcher active on
the app and combine it with the state of the global transition and
revalidator.
Returns ("idle"|"loading"|"submitting")[]
Example
letstates = useGlobalNavigationState(); if (state.includes("loading")) { // The app is loading or revalidating. } if (state.includes("submitting")) { // The app is submitting. } // The app is idle
This is a helper hook that returns the state of every fetcher active on the app and combine it with the state of the global transition and revalidator.