-
Notifications
You must be signed in to change notification settings - Fork 961
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
useQueries constructs URLs with hash fragments and query strings out of order #93
Comments
Mentioned in remix-run/react-router#2224. |
I wonder if history.createPath({ the: 'state' }, '/the/path', { the: 'query' }, '#the-hash') That, to me, feels cleaner than history.createPath({ the: 'state' }, '/the/path#the-hash', { the: 'query' }) |
Worth considering what this means w/r/t #16 - would we be okay with |
We just use the hash to build a URL. I don't see why they couldn't find some use for it on native if they wanted to. |
@mjackson The only issue I have with adding another field is that it gets away from the function name. Maybe the short term fix is to not mangle pathnames with hash fragments and the longer term fix is a change to the API? |
In my mind |
I wonder if this would fit with remix-run/react-router#2186. That is, if And I'm reminded that I miss keyword args from Ruby right now 😉 |
I added the ability to use a |
Specifically, in
appendQuery
, it appends the query string after pathname, which could include a hash fragment. This causes issuesLink
inreact-router
to direct to the wrong URL.The text was updated successfully, but these errors were encountered: