Skip to content

Commit 61ff092

Browse files
committed
chore: format
1 parent 20a1078 commit 61ff092

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

docs/hooks/use-fetcher.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ fetcher.submit(
110110

111111
### `fetcher.load(href, options)`
112112

113-
Loads data from a route loader. While multiple nested routes can match a URL, only the leaf route will be called.
113+
Loads data from a route loader. While multiple nested routes can match a URL, only the leaf route will be called.
114114

115-
Note that when calling `load` on an index route's loader, you must include an [`?index` query param](../guides/index-query-param) in order to disambiguate between the `index.tsx` layout and the `root.tsx` route.
115+
Note that when calling `load` on an index route's loader, you must include an [`?index` query param][index-query-param] in order to disambiguate between the `index.tsx` layout and the `root.tsx` route.
116116

117117
```ts
118118
fetcher.load("/some/route");
@@ -182,3 +182,4 @@ The form method of the submission.
182182
[use-submit]: ./use-submit
183183
[userevalidator]: ./use-revalidator
184184
[shouldrevalidate]: ../route/should-revalidate#shouldrevalidate
185+
[index-query-param]: ../guides/index-query-param

docs/utils/sessions.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ import type {
7474
import { json, redirect } from "@remix-run/node"; // or cloudflare/deno
7575
import { useLoaderData } from "@remix-run/react";
7676

77-
import { getSession, commitSession } from "../sessions.server";
77+
import {
78+
getSession,
79+
commitSession,
80+
} from "../sessions.server";
7881

7982
export async function loader({
8083
request,
@@ -164,7 +167,10 @@ export default function Login() {
164167
And then a logout form might look something like this:
165168

166169
```tsx
167-
import { getSession, destroySession } from "../sessions.server";
170+
import {
171+
getSession,
172+
destroySession,
173+
} from "../sessions.server";
168174

169175
export const action = async ({
170176
request,
@@ -473,7 +479,10 @@ session.set("userId", "1234");
473479
Sets a session value that will be unset the first time it is read in a subsequent request. After that, it's gone. Most useful for "flash messages" and server-side form validation messages:
474480

475481
```ts
476-
session.flash("globalMessage", "Project successfully archived");
482+
session.flash(
483+
"globalMessage",
484+
"Project successfully archived"
485+
);
477486
```
478487

479488
### `session.get(key)`

0 commit comments

Comments
 (0)