Skip to content

Commit 6ab22a7

Browse files
committed
chore: format
1 parent b246aa3 commit 6ab22a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/how-to/file-route-conventions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,10 @@ To create a route that will match any requests that don't match other defined ro
304304
To have this route serve as a 404 page, be sure to modify the response code with a [`loader`](https://reactrouter.com/start/framework/data-loading#server-data-loading) function:
305305

306306
```tsx
307-
import type { Route } from './+types/$';
308-
export const loader = async ({ request }: Route.LoaderArgs) => {
307+
import type { Route } from "./+types/$";
308+
export const loader = async ({
309+
request,
310+
}: Route.LoaderArgs) => {
309311
return data({}, 404);
310312
};
311313
```

0 commit comments

Comments
 (0)