Skip to content

Commit 5b71343

Browse files
Fix broken highlights (#1201)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 28cab9d commit 5b71343

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Solid provides a way to load data from your data sources using the [`createResou
1212
It takes an async function and returns a [signal](/reference/basic-reactivity/create-signal) from it.
1313
`createResource` integrates with [`Suspense`](/reference/components/suspense) and [`ErrorBoundary`](/reference/components/error-boundary) to help manage lifecycle and error states.
1414

15-
```tsx tab title="TypeScript" {6-9}
15+
```tsx tab title="TypeScript" {7-10}
1616
// src/routes/users.tsx
1717
import { For, createResource } from "solid-js";
1818

@@ -28,7 +28,7 @@ export default function Page() {
2828
}
2929
```
3030

31-
```tsx tab title="JavaScript" {4-7}
31+
```tsx tab title="JavaScript" {5-8}
3232
// src/routes/users.jsx
3333
import { For, createResource } from "solid-js";
3434

@@ -48,7 +48,7 @@ For the example below we will be using the data in APIs in [`solid-router`](/sol
4848

4949
Using some of the features of `solid-router`, we can create a cache for our data:
5050

51-
```tsx tab title="TypeScript" {6, 9, 12}
51+
```tsx tab title="TypeScript" {7, 10, 13}
5252
// /routes/users.tsx
5353
import { For } from "solid-js";
5454
import { createAsync, query } from "@solidjs/router";
@@ -71,7 +71,7 @@ export default function Page() {
7171
}
7272
```
7373

74-
```tsx tab title="JavaScript" {4, 7, 10}
74+
```tsx tab title="JavaScript" {5, 8, 11}
7575
// /routes/users.jsx
7676
import { For } from "solid-js";
7777
import { createAsync, query } from "@solidjs/router";
@@ -112,7 +112,7 @@ Through the `"use server"` comment you can tell the bundler to create an RPC and
112112
This lets you write code that only runs on the server without needing to create an API route for it.
113113
For example, it could be database access or internal APIs, or when you sit within your function and need to use your server.
114114

115-
```tsx tab title="TypeScript" {7}
115+
```tsx tab title="TypeScript" {8}
116116
// /routes/users.tsx
117117
import { For } from "solid-js";
118118
import { createAsync, query } from "@solidjs/router";
@@ -135,7 +135,7 @@ export default function Page() {
135135
}
136136
```
137137

138-
```tsx tab title="JavaScript" {5}
138+
```tsx tab title="JavaScript" {6}
139139
// /routes/users.jsx
140140
import { For } from "solid-js";
141141
import { createAsync, query } from "@solidjs/router";

0 commit comments

Comments
 (0)