Skip to content

docs(router): show route-bound context access in a route component #7792

Description

@LadyBluenotes

Goal

Show how a route component reads its merged router context.

Scope

  • Add a component example to docs/router/guide/router-context.md.
  • Use Route.useRouteContext() for the route-bound case.
  • Keep the example consistent with the preceding Route declaration instead of redefining it.
  • Explain or link to the standalone useRouteContext({ from }) API for components that need context from another route.
  • Keep the guide compatible with the shared Router documentation structure.

Related Work

This continues the documentation update started in #5022

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions