supasate/connected-react-router

Browser history stack is modified when time travelling

Open

#36 aberto em 19 de fev. de 2017

Ver no GitHub
 (0 comments) (3 reactions) (0 assignees)JavaScript (606 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (4.741 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador