#Access Current Navigation State

4 messages · Page 1 of 1 (latest)

coral perch
#

I was wondering if there's a way to access the navigating state. On mobile because of route loaders navigation isn't instant and I would like a way to indicate that, like an indeterminate page loading progress bar that is displayed between the user clicking a link and the next page loading in.

Is there some way to access the loading state of the location a user is navigating to?

warm path
#
const status = useRouterState({select: (s) => s.status}
)
coral perch
#

Will this be triggered by preloading too or just between navigation?

warm path
#

should just be between navigations