Skip to content

Commit

Permalink
Update routing-and-navigation.mdx (#1060)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
boazr-neosec and kodiakhq[bot] authored Feb 7, 2025
1 parent 2e84f8e commit 6f2d694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/guides/routing-and-navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 6f2d694

Please sign in to comment.