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
All the routing takes place in my App component. Not sure if that is what is causing the problem or not, or if I'm just missing something. I was previously using this.context.router.history.push() without any problems.
Edit
Just noticed that I need this code (specifically the router):
If I delete router: state.router then programmatically changing the url doesn't update the route (but it does update the URL). I find this really odd because I am not using this.props.router anywhere in the code, yet mapping it to props is needed for the routing to work.
The text was updated successfully, but these errors were encountered:
I have also encountered this problem,I use the time in the redux devtool roaming function, found that the page will not jump,I guess and your problem is the same cause
Version
5.0.0-alpha.4
Steps to reproduce
this.context.store.dispatch(push('/search?id=123'))
Expected Behavior
URL is updated and the correct route is displayed.
Actual Behavior
URL is updated, but stays on the current route.
Additional Info
I noticed that if I embed the routing within
ConnectedRouter
(like in the example) then it works as expected, ie:However, it causes a page refresh, which I don't want. This is how I have it set up:
All the routing takes place in my
App
component. Not sure if that is what is causing the problem or not, or if I'm just missing something. I was previously usingthis.context.router.history.push()
without any problems.Edit
Just noticed that I need this code (specifically the router):
If I delete
router: state.router
then programmatically changing the url doesn't update the route (but it does update the URL). I find this really odd because I am not usingthis.props.router
anywhere in the code, yet mapping it to props is needed for the routing to work.The text was updated successfully, but these errors were encountered: