From 14981d4e90dbd5bc60cc6f4cbb0509f415bc19cc Mon Sep 17 00:00:00 2001 From: stevo Date: Sun, 27 Sep 2015 14:15:36 +0100 Subject: [PATCH] Workaround broken back/forward --- src/client.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client.js b/src/client.js index 685c92344..942f2b466 100755 --- a/src/client.js +++ b/src/client.js @@ -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);