mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
When parsing path params to interpolate the path non-nested path params ```/path/$param_``` was being parsed in the same manner as regular path params ```/path/$param```. This PR adds consideration for the trailing underscore when parsing the path for non-nested path params as well as unit tests on path interpolation and e2e tests for useParams to ensure this is parsed correctly and updates correctly when params change. This resolves #5164 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Support trailing-underscore non-nested path params (e.g., /users/$id_ → /users/123). - UI shows an additional navigation link for the non-nested route (/params-ps/non-nested/foo2/bar2) and improved link display text. - Tests - Expanded React and Solid e2e tests to cover the new link, navigation, and param parsing for foo2/bar2. - Added unit tests validating interpolation/matching for the $param_ syntax. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| .gitignore | ||
| index.html | ||
| package.json | ||
| playwright.config.ts | ||
| postcss.config.mjs | ||
| tailwind.config.mjs | ||
| tsconfig.json | ||
| vite.config.js | ||