Skip to content

Commit

Permalink
Fix back/forward properly
Browse files Browse the repository at this point in the history
  • Loading branch information
stevoland committed Sep 27, 2015
1 parent 14981d4 commit 6075354
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 6075354

Please sign in to comment.