Skip to content

Commit 4be0415

Browse files
atilafassinamangs
andauthored
Update src/routes/solid-router/advanced-concepts/preloading.mdx
Co-authored-by: Eric L. Goldstein <3359116+mangs@users.noreply.github.com>
1 parent 738edde commit 4be0415

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/solid-router/advanced-concepts/preloading.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ This helper will load only the route's component by default, but it can receive
1919

2020
## Preloading and Lazy Loading
2121

22-
When a route has nested lazy components, such components will not be part of the route hierarchy, so they **will not** be preloaded with the route. To preload such components, you can use the [`usePreloadRoute`](/solid-router/reference/primitives/use-preload-route) helper in the parent component to load them when needed.
22+
When a route has nested lazy components, such components will not be part of the route hierarchy, so they **will not** be preloaded with the route. To preload such components, you can use the `preload()` function returned from calling the [`lazy()`](https://docs.solidjs.com/reference/component-apis/lazy) component API.
2323

2424
To learn more about lazy loading components, see the [`lazy`](/reference/component-apis/lazy#preloading-data-in-nested-lazy-components) documentation.

0 commit comments

Comments
 (0)