Skip to content

Commit

Permalink
fix: route loader code example in docs (#9249)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiduca committed Sep 14, 2022
1 parent 6b74214 commit 71099a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
@@ -1,6 +1,7 @@
- abhi-kr-2100
- Ajayff4
- alexlbr
- andreiduca
- avipatel97
- awreese
- bavardage
Expand Down
8 changes: 5 additions & 3 deletions docs/start/overview.md
Expand Up @@ -66,9 +66,11 @@ createBrowserRouter(
<Route
path="dashboard"
element={<Dashboard />}
loader={fetch("/api/dashboard.json", {
signal: request.signal,
})}
loader={({ request }) =>
fetch("/api/dashboard.json", {
signal: request.signal,
})
}
/>
<Route element={<AuthLayout />}>
<Route
Expand Down

0 comments on commit 71099a5

Please sign in to comment.