Returns the controller of the route that was intercepted during navigation, or null if such route wasn't intercepted.
null
Route params.
Data loaded by a route.
A router context.
The route to intercept.
const fooController = useInterceptedRoute(fooRoute);fooController !== null && <RouteOutlet controller={fooController} /> Copy
const fooController = useInterceptedRoute(fooRoute);fooController !== null && <RouteOutlet controller={fooController} />
RouteOutlet
Returns the controller of the route that was intercepted during navigation, or
null
if such route wasn't intercepted.