5 Matching Annotations
- May 2021
-
github.com github.com
-
fetch: (url: string, opts?: any)
-
- 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.
-
Preload is the Sapper equivalent to getInitialProps in Next.js or asyncData in Nuxt.js.
-
-
github.com github.com
Tags
Annotators
URL
-