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

Extend query support to match URLSeachParams #310

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

stackoverfloweth
Copy link
Contributor

We discovered in a recent PR that the type we're using to pass query values (Record<string, string>) was limiting our ability to mirror native behavior of built in URLSeachParams type. Specifically, the object syntax doesn't allow for multiple entries with the same key.

This PR updates our QueryRecord type to match any value accepted by the constructor of URLSeachParams.

docs/api/components/RouterLink.md Outdated Show resolved Hide resolved
src/types/query.ts Outdated Show resolved Hide resolved
Base automatically changed from resolve-returns-url-type-simplified to main November 16, 2024 16:17
Copy link

netlify bot commented Nov 16, 2024

Deploy Preview for kitbag-router ready!

Name Link
🔨 Latest commit 9058037
🔍 Latest deploy log https://app.netlify.com/sites/kitbag-router/deploys/6738e501e7d4420008c75018
😎 Deploy Preview https://deploy-preview-310--kitbag-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@pleek91 pleek91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@pleek91 pleek91 merged commit da092f8 into main Nov 17, 2024
6 checks passed
@pleek91 pleek91 deleted the expand-supported-query-types branch November 17, 2024 00:02
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.

2 participants