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
This documents some new nested-route fields that were added in
getsentry/sentry#100481
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Extend RTL testing docs with outlet context configuration and nested
routes examples, plus a clarified route param section.
>
> - **Docs (Using React Testing Library)**:
> - **Route Param Values**: Add a dedicated heading and example
clarifying use of `route` for `useParams()`.
> - **Outlet Context**: Document passing
`initialRouterConfig.outletContext` and consuming via
`useOutletContext()`.
> - **Nested Routes**:
> - Show configuring an in-memory route tree via
`initialRouterConfig.children`.
> - Add wrapper `Outlet` with typed context and custom hook, plus
examples for index and param child routes.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
c139854. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
We can configure the in-memory router to know about just the route tree that you need. Remember to render the wrapper component itself, and the router + route child components will render themsevles.
0 commit comments