Skip to content

Commit

Permalink
Merge pull request #245 from stevoland/gah
Browse files Browse the repository at this point in the history
Workaround broken back/forward. Fixes #240
  • Loading branch information
erikras committed Sep 27, 2015
2 parents fc430aa + 14981d4 commit 5d101a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ const render = (loc, hist, str, preload) => {
});
};

history.listenBefore((loc, callback) => {
render(loc, history, store, true)
.then((callback));
history.listen((loc) => {
render(loc, history, store, true);
});

render(location, history, store);
Expand Down

0 comments on commit 5d101a7

Please sign in to comment.