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);