-
Notifications
You must be signed in to change notification settings - Fork 27
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
naviagte-to with query-params #64
Comments
Thank you for reporting! I didn't have time to look into this, and never tried that myself. Do you have any ideas what would need fixing? |
You can use
In order to produce the query string out of a map you could use a library like https://github.com/cemerick/url:
|
Ahh that makes sense. I am torn if the default setup should have more
robust support of query strings or not but this works! It might be a decent
middle ground to include an example somewhere.
…On Fri, Jan 18, 2019 at 2:41 AM MaxSt ***@***.***> wrote:
You can use :navigate-to with query-params by using the :query-string
keyword.
Here is an example
:navigate-to [:example {:query-string "abc=test"}]
In order to produce the query string out of a map you could use a library
like https://github.com/cemerick/url:
:navigate-to [:example {:query-string (url/map->url {"abc" "test"})}]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#64 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACU6e45sf9ytC9khua_WvfKv5i53FEKJks5vEaTIgaJpZM4ZyUAG>
.
|
I will try to remember to include an example in the docs. A PR would also be appreciated and accepted :) |
Added a link to this issue in the readme. Thanks guys! |
Maybe I am missing something but it doesn't seem possible currently to use the internal reitit router with
:navigate-to
and query-params.The text was updated successfully, but these errors were encountered: