-
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
Handle location descriptors in createLocation #200
Conversation
expect(location.search).toEqual('?the=query') | ||
}) | ||
|
||
it('works with object with query', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case will not work without this patch.
@mjackson Can you look at this when you get a chance, and maybe cut 2.0.0-rc2 off this? It's blocking a few more API cleanups we need for the router. |
f6d0de1
to
d80919d
Compare
On second thought, this might be the wrong implementation; instead, we're probably better off just passing fields through |
Nope, never mind, that doesn't work. |
Updated for better forward-compat with remix-run/react-router#2859. |
2a2a98a
to
aabd91b
Compare
Looks like the changes merge conflict. That's why I tend to leave docs out of PRs. For now, just rebase and get it green 😄 |
This allows preserving the behavior in React Router of using explicit undefined query values to require query values to be missing for isActive, and prevents unnecessary query string parsing.
aabd91b
to
fd4f28a
Compare
Eh, just rebased for now. |
Handle location descriptors in createLocation
No description provided.