Prefetches components and data of routes matched by a location after a component has mounted.
A location or a route to prefetch.
const productRoute = createRoute('/product/:sku');usePrefetch(productRoute.getLocation({ sku: 37 })); Copy
const productRoute = createRoute('/product/:sku');usePrefetch(productRoute.getLocation({ sku: 37 }));
Prefetch
Prefetches components and data of routes matched by a location after a component has mounted.