Primitives

useIsRouting

Edit this page

Retrieves 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() }}>
<MyAwesomeConent />
</div>
);
Report an issue with this page