-
Notifications
You must be signed in to change notification settings - Fork 384
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
Nav-bar consistency error. #413
Comments
@MrJoy I agree. Can you take a look and let me know what you find? |
If anybody sees this issue, it's a great way to try adding a contribution to this project. |
@bluemihai did you want to submit a PR? |
@justin808 What is the intended behaviour here? Current: Is this the intended behaviour? |
|
@justin808 That's correct. Is that the intended behaviour? if not what is the intended behaviour? |
@justin808 I am working on this one. |
@justin808 I'd like to try on this one. May I? I'm applying for upwork position as well thx |
@justin808 in react router 4, first, need to import withRouter like: import {withRouter} from 'react-router-dom'; then we can get the current path this.props.location.pathname we can match it and then add 'active' class to respective menu item. thx. |
Please link to a PR if you want to suggest some fix. I'm more eager to get the webpack configuration updated and make a sensible configuration for hot reloading. |
@justin808 |
@justin808 sorry, i might be wrong, but it i guess it is problem with routing, it has nothing with hot-reloading, coz, hot-reloading is a solution to display any update made to any component on the page. but here we are fixing the routing issue. we can use NavLink from react-dom-router. you can see this example for reference : https://codeburst.io/getting-started-with-react-router-5c978f70df91 . it can be done with webpack also. thx. |
In react dev tool, there are duplicated providers. Seems like url changes does not represent redux connected component render. This fixed shakacode#413 issue but got an another error.
@justin808 When I debug to fix this issue, I found some interesting thing. There are duplicated providers. |
This issue is already resolved. |
When going to https://www.reactrails.com/ and clicking
Test React Router ('/react-router')
, the navigation bar entry forReact Router Demo
remains selected. When loading https://www.reactrails.com/react-router directly, it is not.I'm not sure which behavior is the intended one, but the inconsistency suggests a bug.
The text was updated successfully, but these errors were encountered: