Skip to content

Commit 8b6ece2

Browse files
authored
Update data-loading.mdx (#971)
1 parent 4238c03 commit 8b6ece2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/solid-start/building-your-application/data-loading.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ With this method, however, there are some caveats to be aware of:
104104
1. The [`preload`](/solid-router/reference/preload-functions/preload) function is called **once** per route, which is the first time the user comes to that route.
105105
Following that, the fine-grained resources that remain alive synchronize with state/url changes to refetch data when needed.
106106
If the data needs a refresh, the [`refetch`](/guides/fetching-data#refetch) function returned in the `createResource` can be used.
107-
2. Before the route is rendered, the `load` function is called.
107+
2. Before the route is rendered, the `preload` function is called.
108108
It does not share the same `context` as the route.
109-
The context tree that is exposed to the `load` function is anything above the `Page` component.
110-
3. On both the server and the client, the `load` function is called.
109+
The context tree that is exposed to the `preload` function is anything above the `Page` component.
110+
3. On both the server and the client, the `preload` function is called.
111111
The resources can avoid refetching if they serialized their data in the server render.
112112
The server-side render will only wait for the resources to fetch and serialize if the resource signals are accessed under a `Suspense` boundary.
113113

0 commit comments

Comments
 (0)