supasate/connected-react-router

Browser history stack is modified when time travelling

Offen

#36 geöffnet am 19.02.2017

 (0 Kommentare) (3 Reaktionen) (0 zugewiesene Personen)JavaScript (606 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (4.741 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Currently, when we do time travelling, the ConnectedRouter tries to change the URL bar to match the router state in the redux store (which is changed by Redux DevTools) by using history.push (see here).

This method seems to work fine, however, internally, the real browser history stack is modified (new history is pushed on top of the stack). It would be better if we can change the URL by just moving the pointer in the history stack to match time travelling.

Contributor Guide