Skip to content

useMatchRoute({ to: ... }) is used with default (exact) matching to compute isActive. This changes behavior from the previous NavLink (which was active for nested routes) and will likely cause tabs like “Sets” to not appear active on nested routes (e.g. set details) and “Schedule” to not appear active on /schedule/timeline or /schedule/list. Consider using fuzzy/partial matching (e.g. fuzzy: true) or Link activeOptions so parent tabs stay active for descendant routes. #26

@chiptus

Description

@chiptus

useMatchRoute({ to: ... }) is used with default (exact) matching to compute isActive. This changes behavior from the previous NavLink (which was active for nested routes) and will likely cause tabs like “Sets” to not appear active on nested routes (e.g. set details) and “Schedule” to not appear active on /schedule/timeline or /schedule/list. Consider using fuzzy/partial matching (e.g. fuzzy: true) or Link activeOptions so parent tabs stay active for descendant routes.

Originally posted by @Copilot in #25 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions