Skip to content

Commit fd9842f

Browse files
committed
docs: Fix line highlights on some hook pages
1 parent 1c2a4b9 commit fd9842f

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

docs/core/api/useDebounce.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function IssueList({ q, owner, repo }) {
8181
export default React.memo(IssueList) as typeof IssueList;
8282
```
8383

84-
```tsx title="SearchIssues" {8}
84+
```tsx title="SearchIssues" {7}
8585
import { useDebounce, AsyncBoundary } from '@data-client/react';
8686
import IssueList from './IssueList';
8787

docs/core/shared/_installation.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export default function RootLayout({ children }) {
8080

8181
```tsx title="app/_layout.tsx"
8282
import { Stack } from 'expo-router';
83-
// highlight-next-line
8483
import { DataProvider } from '@data-client/react';
8584

8685
export default function RootLayout() {

docs/core/shared/_useCancelling.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const TodoResource = createResource({
2020
});
2121
```
2222

23-
```tsx title="TodoDetail" {6}
23+
```tsx title="TodoDetail" {5}
2424
import { useSuspense, useCancelling } from '@data-client/react';
2525
import { TodoResource } from './api/Todo';
2626

@@ -45,9 +45,7 @@ function AbortDemo() {
4545
<TodoDetail id={id} />
4646
</AsyncBoundary>
4747
<div>
48-
<button onClick={() => setId(id => Math.max(id - 1, 1))}>
49-
«
50-
</button>
48+
<button onClick={() => setId(id => Math.max(id - 1, 1))}>«</button>
5149
{id} &nbsp;
5250
<button onClick={() => setId(id => id + 1)}>»</button>
5351
</div>

docs/core/shared/_useLoading.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function PostForm({ onSubmit, loading, error }) {
8787
}
8888
```
8989

90-
```tsx title="PostCreate" {8}
90+
```tsx title="PostCreate" {7}
9191
import { useLoading, useController } from '@data-client/react';
9292
import { PostResource } from './PostResource';
9393
import PostForm from './PostForm';

website/blog/2024-01-15-v0.9-release-announcement copy.md renamed to website/blog/2024-01-15-v0.9-release-announcement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: v0.9 Things
33
authors: [ntucker]
4-
tags: [releases, rest, resource, endpoint, collections]
4+
tags: [releases, rest, resource, endpoint, collection]
55
draft: true
66
---
77

website/sidebars.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@
172172
},
173173
{
174174
"type": "doc",
175-
"id": "api/useSubscription"
175+
"id": "api/useLive"
176176
},
177177
{
178178
"type": "doc",
179-
"id": "api/useLive"
179+
"id": "api/useSubscription"
180180
},
181181
{
182182
"type": "doc",

0 commit comments

Comments
 (0)