You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/router/framework/react/guide/router-context.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,9 @@ const router = createRouter({
42
42
})
43
43
```
44
44
45
+
> [!TIP]
46
+
> `MyRouterContext` only needs to contain content that will be passed directly to `createRouter` below. All other context added in `beforeLoad` will be inferred.
47
+
45
48
## Passing the initial Router Context
46
49
47
50
The router context is passed to the router at instantiation time. You can pass the initial router context to the router via the `context` option:
0 commit comments