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

Don't override path in NavLink component. Fixes #6613 #6623

Merged
merged 3 commits into from May 16, 2019
Merged

Don't override path in NavLink component. Fixes #6613 #6623

merged 3 commits into from May 16, 2019

Conversation

StringEpsilon
Copy link
Contributor

@StringEpsilon StringEpsilon commented Mar 12, 2019

See comments here.

I added some unit tests in NavLink-test and also removed the location override as a precaution for other interactions.

@StringEpsilon
Copy link
Contributor Author

@timdorr Added tests. Let me know of any feedback you might have.

@StringEpsilon
Copy link
Contributor Author

Rebased and added a similar refactoring as #6685 too. I can move that to it's own PR if you want to.

@StringEpsilon StringEpsilon mentioned this pull request May 15, 2019
@timdorr
Copy link
Member

timdorr commented May 15, 2019

Can you update the size snapshot?

* Add tests for withRouter() inside NavLink
Same reasons as for withRouter: Less nesting, clearer error message.
@StringEpsilon
Copy link
Contributor Author

@timdorr Rebased onto master and corrected the snapshots while doing so.

@timdorr
Copy link
Member

timdorr commented May 16, 2019

Great! Thanks!

@timdorr timdorr merged commit a38ef04 into remix-run:master May 16, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 15, 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