-
Notifications
You must be signed in to change notification settings - Fork 640
compatible with HashHistory? #12
Comments
I've caught this too. |
Looks like side-effect of putting location-with-hash back to history. That should be it: then you update history of createHashHistory it tries to save |
Thanks all, I'll try to look at this more today. Admittedly I don't understand the |
It's something they put as query param to save previous state, and it's quite puzzling. |
I have the same problem too. |
There's a PR for this: #23. I'd like to find a prettier way to fix, but looks like we basically just need to do something different in |
@jlongster Does that PR disregard all query params from being stored in state? Looks like the key param I wish they would just remove state from history 😞 |
@amccloud |
Hey all, I just started working on a basic example, and I tried hash history with it and it worked fine: #35 What other steps do I need to do to recreate this issue? |
@kadmil @box-turtle I still can't fully reproduce this error: "Warning: You cannot PUSH the same path using hash history" We do need to fix something here, but it should never push the same path. Because if history changes because a So there is a problem: the updating process should stop in the store listener. We can't assume that |
@ryanflorence @mjackson Sorry to pull you in like this, but do you know of a robust way to get the current URL from a |
@jlongster You can recreate the same path warning if you set
locationToString is including the leading #/ in the path so it will appear 'new.' locationToString - '/#/mypath'; routing.path - '/mypath' |
This should be fixed with #40, which I just pushed out with 0.0.9 |
I see a strange behavior if I try to use this with HashHistory and call syncReduxAndRouter.
The queryKey param (http://rackt.org/history/stable/HashHistoryCaveats.html) seems to change every second or so, changing in the URL bar and I think it's reloading the route every second as well.
I get this warning in console:
Warning: You cannot PUSH the same path using hash history
It's possible this is something with my app, but I didn't see it when using redux-router.
I like this API much better! Just curious if anyone else has seen this behavior.
The text was updated successfully, but these errors were encountered: