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

Handle location descriptors in createLocation #200

Merged
merged 2 commits into from
Jan 17, 2016

Conversation

taion
Copy link
Contributor

@taion taion commented Jan 6, 2016

No description provided.

expect(location.search).toEqual('?the=query')
})

it('works with object with query', function () {
Copy link
Contributor Author

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.

@taion
Copy link
Contributor Author

taion commented Jan 9, 2016

@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.

@taion taion force-pushed the fix-createLocation branch 3 times, most recently from f6d0de1 to d80919d Compare January 13, 2016 00:14
@taion
Copy link
Contributor Author

taion commented Jan 13, 2016

On second thought, this might be the wrong implementation; instead, we're probably better off just passing fields through createLocation.

@taion
Copy link
Contributor Author

taion commented Jan 13, 2016

Nope, never mind, that doesn't work.

@taion
Copy link
Contributor Author

taion commented Jan 15, 2016

Updated for better forward-compat with remix-run/react-router#2859.

@timdorr
Copy link
Member

timdorr commented Jan 15, 2016

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.
@taion
Copy link
Contributor Author

taion commented Jan 15, 2016

Eh, just rebased for now.

ryanflorence added a commit that referenced this pull request Jan 17, 2016
Handle location descriptors in createLocation
@ryanflorence ryanflorence merged commit 3d8eaef into remix-run:master Jan 17, 2016
@taion taion deleted the fix-createLocation branch January 17, 2016 17:52
@timdorr timdorr mentioned this pull request Jan 21, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants