Skip to content

Commit 6455fc4

Browse files
committed
chore: generate markdown docs from jsdocs
1 parent 3acd610 commit 6455fc4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/api/components/Await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Used to render promise values with automatic error handling.
2929
```tsx
3030
import { Await, useLoaderData } from "react-router";
3131

32-
export function loader() {
32+
export async function loader() {
3333
// not awaited
3434
const reviews = getReviews();
3535
// awaited (blocks the transition)

docs/api/data-routers/createBrowserRouter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ const routes = [
207207
];
208208

209209
let router = createBrowserRouter(routes, {
210-
dataStrategy({ request, params, matches }) {
210+
async dataStrategy({ request, params, matches }) {
211211
// Compose route fragments into a single GQL payload
212212
let gql = getFragmentsFromRouteHandles(matches);
213213
let data = await fetchGql(gql);

docs/api/data-routers/createHashRouter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const routes = [
277277
];
278278

279279
let router = createBrowserRouter(routes, {
280-
dataStrategy({ request, params, matches }) {
280+
async dataStrategy({ request, params, matches }) {
281281
// Compose route fragments into a single GQL payload
282282
let gql = getFragmentsFromRouteHandles(matches);
283283
let data = await fetchGql(gql);

0 commit comments

Comments
 (0)