From 9148367c8b3193e65e789fbc864170f39a3ab10f Mon Sep 17 00:00:00 2001 From: Dan The Dev Date: Thu, 31 Oct 2019 21:29:12 +0200 Subject: [PATCH] pass state in push and replace methods --- src/store.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store.js b/src/store.js index 200ba5c..9d5cba4 100644 --- a/src/store.js +++ b/src/store.js @@ -21,11 +21,11 @@ export class RouterStore { /* * History methods */ - push = (location) => { - this.history.push(location); + push = (location, state) => { + this.history.push(location, state); } - replace = (location) => { - this.history.replace(location); + replace = (location, state) => { + this.history.replace(location, state); } go = (n) => { this.history.go(n);