molefrog / wouter

🥢 A minimalist-friendly ~2.1KB routing for React and Preact
https://npm.im/wouter
The Unlicense
6.65k stars 152 forks source link

Feat: nested params #461

Closed molefrog closed 3 months ago

molefrog commented 3 months ago

Closes #409 Parent route parameters now appear in params returned from useParams(). New values overwrite old ones.

stackblitz[bot] commented 3 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

github-actions[bot] commented 3 months ago

size-limit report 📦

Path Size
packages/wouter/esm/index.js 2.23 KB (+2.43% 🔺)
packages/wouter/esm/use-browser-location.js 622 B (0%)
packages/wouter/esm/memory-location.js 798 B (0%)
packages/wouter/esm/use-hash-location.js 709 B (0%)
packages/wouter-preact/esm/index.js 2.12 KB (+2.37% 🔺)
packages/wouter-preact/esm/use-browser-location.js 552 B (0%)
packages/wouter-preact/esm/use-hash-location.js 618 B (0%)
packages/wouter-preact/esm/memory-location.js 702 B (0%)
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (fa5f6b1) to head (3c12a18).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v3 #461 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 1 1 ========================================= Hits 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.