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: Allow remapping keys in useQueryStates #671

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Conversation

franky47
Copy link
Member

@franky47 franky47 commented Oct 7, 2024

While it was possible to do it via speading & remapping variable names in userland, this makes it more declarative and should help decouple business/domain logic in variable names vs short URL search param keys.

Tasks

  • Add docs

While it was possible to do it via speading & remapping variable names
in userland, this makes it more declarative and should help decouple
business/domain logic in variable names vs short URL search param keys.
Copy link

vercel bot commented Oct 7, 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 Oct 7, 2024 7:51pm

Copy link

pkg-pr-new bot commented Oct 7, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/nuqs@671

commit: 5a7f006

@franky47 franky47 merged commit 79f80da into next Oct 7, 2024
19 checks passed
@franky47 franky47 deleted the feat/remapped-keys branch October 7, 2024 19:54
Copy link

github-actions bot commented Oct 7, 2024

🎉 This PR is included in version 1.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@franky47 franky47 mentioned this pull request Oct 7, 2024
zemnmez-renovate-bot added a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v1.20.0](https://github.com/47ng/nuqs/releases/tag/v1.20.0)

##### Features

-   Allow remapping keys in useQueryStates ([#671](47ng/nuqs#671)) ([79f80da](47ng/nuqs@79f80da))
-   **serializer:** allow `null` to clear all param values from base ([#657](47ng/nuqs#657)) ([0e7395e](47ng/nuqs@0e7395e)) - Thanks [@neefrehman](https://github.com/neefrehman) !
github-merge-queue bot pushed a commit to zemn-me/monorepo that referenced this pull request Oct 7, 2024
##### [`v1.20.0](https://github.com/47ng/nuqs/releases/tag/v1.20.0)

##### Features

-   Allow remapping keys in useQueryStates ([#671](47ng/nuqs#671)) ([79f80da](47ng/nuqs@79f80da))
-   **serializer:** allow `null` to clear all param values from base ([#657](47ng/nuqs#657)) ([0e7395e](47ng/nuqs@0e7395e)) - Thanks [@neefrehman](https://github.com/neefrehman) !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant