-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Q: How to replace createSearchParams #30
Comments
There are two options:
|
Thanks for the hints @ai. I tried suggestion (2) today but that is not ideal for this use case because it requires to specify the path of each route which uses my map component because the component needs to use So I went with suggestion (1) and copied the version 0.13.0 code in osmberlin/www.osm-verkehrswende.org@3d2e27b (with some minor TS adjustments). I with there was something like https://github.com/47ng/nuqs for Astro/Plain React which work great in this use case where one wants to use a global state but store it in the URL. |
In https://github.com/nanostores/router/blob/main/CHANGELOG.md?plain=1#L10 I read that
I have this Astro App which uses
export const $searchParams = createSearchParams()
to create a store that is stored in the URL. https://github.com/osmberlin/www.osm-verkehrswende.org/blob/main/src/components/BaseMap/store.ts#L23How would I migrate that to route.search? I am not using the router in Astro, I am looking for something like an
atom
, but in the URL.The text was updated successfully, but these errors were encountered: