Skip to content

Commit e87bd30

Browse files
authored
docs: Update router-context.md with context usage tips (#5540)
1 parent 15b1818 commit e87bd30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/router/framework/react/guide/router-context.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ const router = createRouter({
4242
})
4343
```
4444

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+
4548
## Passing the initial Router Context
4649

4750
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

Comments
 (0)