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: Abstract reading from location.search in adapters interface #800

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

franky47
Copy link
Member

@franky47 franky47 commented Dec 10, 2024

This is mainly for the testing adapter to only work on the provided set of initial search params without needing to stub/mock location.search.

But it also opens the door for adapters to define new storage locations, like hash/fragment or even localStorage.

Note: might be useful for #723 and #206.

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuqs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 11, 2024 8:20pm

Copy link

pkg-pr-new bot commented Dec 10, 2024

Open in Stackblitz

npm i https://pkg.pr.new/nuqs@800

commit: 0621948

@franky47 franky47 marked this pull request as ready for review December 10, 2024 23:47
@franky47 franky47 added this to the 🪵 Backlog milestone Dec 10, 2024
This is mainly for the testing adapter to only work on the provided set
of initial search params without needing to stub/mock location.search.

But it also opens the door for adapters to define new storage locations,
like hash/fragment or even localStorage.
@franky47 franky47 force-pushed the feat/abstract-location-search-in-adapters branch from 0a61c35 to 0621948 Compare December 11, 2024 20:16
@franky47 franky47 merged commit 1635863 into next Dec 11, 2024
25 of 26 checks passed
@franky47 franky47 deleted the feat/abstract-location-search-in-adapters branch December 11, 2024 20:20
Copy link

🎉 This PR is included in version 2.3.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Jan 1, 2025

🎉 This PR is included in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant