Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: nested params #461

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Feat: nested params #461

merged 4 commits into from
Jun 25, 2024

Conversation

molefrog
Copy link
Owner

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

Copy link

stackblitz bot commented Jun 24, 2024

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

Copy link

github-actions bot commented Jun 24, 2024

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%)

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@molefrog molefrog merged commit 9256f0e into v3 Jun 25, 2024
4 checks passed
@molefrog molefrog deleted the feat/nested-params branch June 25, 2024 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing nested params with useParams
1 participant