You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/solid-start/building-your-application/data-loading.mdx
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Solid provides a way to load data from your data sources using the [`createResou
12
12
It takes an async function and returns a [signal](/reference/basic-reactivity/create-signal) from it.
13
13
`createResource` integrates with [`Suspense`](/reference/components/suspense) and [`ErrorBoundary`](/reference/components/error-boundary) to help manage lifecycle and error states.
14
14
15
-
```tsx tab title="TypeScript" {6-9}
15
+
```tsx tab title="TypeScript" {7-10}
16
16
// src/routes/users.tsx
17
17
import { For, createResource } from"solid-js";
18
18
@@ -28,7 +28,7 @@ export default function Page() {
28
28
}
29
29
```
30
30
31
-
```tsx tab title="JavaScript" {4-7}
31
+
```tsx tab title="JavaScript" {5-8}
32
32
// src/routes/users.jsx
33
33
import { For, createResource } from"solid-js";
34
34
@@ -48,7 +48,7 @@ For the example below we will be using the data in APIs in [`solid-router`](/sol
48
48
49
49
Using some of the features of `solid-router`, we can create a cache for our data:
0 commit comments