Skip to content

Commit

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

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

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

render(location, history, store);
Expand Down

0 comments on commit 33dd5e4

Please sign in to comment.