You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The active link of the DropDown menu works fine when I'm switch between the two PrivateRoute '/analysis/:analysisId' and '/analysis/:analysisId/data' but when I switch back to the homepage, the last MenuItem active stays that way.
I'm pretty sure I'm doing something wrong but even after browsing the related issues, I don't know where to look.
The text was updated successfully, but these errors were encountered:
Check your <Navigation /> component and see if it's being re-rendered. Quite often this is caused by react-redux preventing component from being updated.
@v12 It was indeed react-redux preventing my nav component from being re-rendered. Thanks for your help.
If anyone face the same issue, I used the { pure : false } option with react-redux connect function. Here's a topic about it: remix-run/react-router#3536
I hope that this solution is still the recommended way to "force" a component to re-render.
Hi,
I'm using a react-bootstrap Navbar like this:
And my react-router configuration is this one:
index.js:
App Component:
The active link of the DropDown menu works fine when I'm switch between the two PrivateRoute '/analysis/:analysisId' and '/analysis/:analysisId/data' but when I switch back to the homepage, the last MenuItem active stays that way.
I'm pretty sure I'm doing something wrong but even after browsing the related issues, I don't know where to look.
The text was updated successfully, but these errors were encountered: