diff --git a/src/routes/guides/routing-and-navigation.mdx b/src/routes/guides/routing-and-navigation.mdx index 5deacbec5..0485f6346 100644 --- a/src/routes/guides/routing-and-navigation.mdx +++ b/src/routes/guides/routing-and-navigation.mdx @@ -486,7 +486,7 @@ export function preloadUser({ params, location, intent }) { `preloadUser` is passed an object which contains `params`, `location` and `intent`. -Please note that while it is best practice to write these files as `[id].data.js`, you can still write `route.data.js`. +Please note that while it is best practice to name these files as `[id].data.js`, you can still name them as `route.data.js`. The value of a preload function is passed to the page component when called at any time other than "preload". This means you can initialize the page, or use [Data APIs](/solid-router/reference/data-apis/create-async).