To let an external cache make the freshness decision, set routerOptions.defaultPreloadStaleTime or routeOptions.preloadStaleTime to 0. Settled preload data then becomes immediately stale in the Router,
5 Matching Annotations
- Last 7 days
-
tanstack.com tanstack.com
-
- Dec 2020
-
sapper.svelte.dev sapper.svelte.dev
-
Preload functions are typically used to load data that the page depends on, hence its name. This avoids the user seeing the page update as it loads, as is typically the case with client-side loading.
-
Page components can define a preload function that runs before the component is created. The values it returns are passed as props to the page.
-
- Aug 2019