Skip to content

[router] Add test for useParams with optional and catch-all route segments #3255

Description

@tmdeveloper007

Description

The router's useParams hook in packages/router/src/ does not have tests for:

  • Optional segments like /users/:id?
  • Catch-all segments like /docs/*

Expected behavior

Tests that verify useParams returns the correct params object for all segment types.

Priority

medium

Metadata

Metadata

Labels

assignedIssue claimed by a contributor.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions