We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.0.0
import React from 'react' import { BrowserRouter as Router, Route, Link, NavLink } from 'react-router-dom' import { connect } from 'react-redux' class Nav extends React.Component { render() { return ( <ul> <li><NavLink exact to="/" activeClassName="is-selected">Home</NavLink></li> <li><NavLink to="/about" activeClassName="is-selected">About</NavLink></li> <li><NavLink to="/topics" activeClassName="is-selected">Topics</NavLink></li> </ul> ); } } var ConnectedNav = connect((state) => { return {}; })(Nav); const BasicExample = () => ( <Router> <div> <ConnectedNav /> </div> </Router> ) export default BasicExample;
activeClassName should be applied to current NavLinks
As you navigate around nothing activeClassName is not applied, isActive method is not called, etc.
The text was updated successfully, but these errors were encountered:
Please see our guide to dealing with blocked updates. Also, react-redux v5 is going to stop blocking updates using shouldComponentUpdate, AFAICT.
shouldComponentUpdate
Sorry, something went wrong.
yes! it's ok on preview bug.
d30a826
see this issue:remix-run/react-router#4753
No branches or pull requests
Version
4.0.0
Test Case
Steps to reproduce
Expected Behavior
activeClassName should be applied to current NavLinks
Actual Behavior
As you navigate around nothing activeClassName is not applied, isActive method is not called, etc.
The text was updated successfully, but these errors were encountered: