-
Notifications
You must be signed in to change notification settings - Fork 2.2k
browserHistory.push(...) only change the location but doesn't update #891
Comments
Since this is a redux project, it's recommended that you dispatch actions via |
@davezuko thanks I was asking this method because I saw enable syncHistoryWithStore and in a previous version of this starter-kit I did it in that way. thanks in advance I'll take the dispatch approach |
Did the dispatch approach solve your problem? I have the same problem and tried the two approaches. Neither of them worked. |
+1 |
@areshand dispatch did solve my problem. Beside using |
@davezuko |
@davezuko
URL is updating but still in login page not redirecting to dashboard page. @martinjuhasz Where we need to apply middlewares is there any example code can you provide that might helpful. |
@bharadwajag I solved it by using sagas.js
On an unrelated note, I see you're storing the token in local storage. A more secure approach is to store it in httponly secure cookie, you might want to check that out. |
If I navigate directly to
/my-path
it works but I need go programmaticallyso I'm using the following
the url change but nothing is updated
The text was updated successfully, but these errors were encountered: