useIsRouting
Edit this pageRetrieves a signal that indicates whether the route is currently in a transition. This is useful for showing a stale or pending state when the route resolution is suspended state during concurrent rendering.
const isRouting = useIsRouting();
return ( <div classList={{ "grey-out": isRouting() }}> <MyAwesomeContent /> </div>);