Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

fix(NavLink): Fixed navlink active state. #383

Merged
merged 2 commits into from
Dec 5, 2018
Merged

Conversation

AaronCoplan
Copy link
Contributor

@AaronCoplan AaronCoplan commented Dec 4, 2018

Fixing NavLink state per recommendation in #361 . Seems to work for the example - @GregoryHamel thoughts on this?

This resolves #361

Copy link
Contributor

@Greg-Hamel Greg-Hamel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a condition for this RootComponent to only apply exact if it is a withRouter component.

This will prevent errors/warning if used in other contexts.

@AaronCoplan
Copy link
Contributor Author

@GregoryHamel Good call - that will be massively helpful with backward compatibility. I implemented this suggestion (which required passing a prop all throughout our Navigation hierarchy). Let me know your thoughts on the updates 👍

@AaronCoplan AaronCoplan merged commit 157c33c into master Dec 5, 2018
@jonthomp
Copy link
Contributor

jonthomp commented Dec 5, 2018

🎉 This PR is included in version 1.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Thomas-Smyth
Copy link
Contributor

Thanks for the fix!

@jonthomp jonthomp deleted the navlink-state-fix branch June 2, 2019 15:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
4 participants