From 85bb476206f1a429e9b4e415423afe08ecd866e1 Mon Sep 17 00:00:00 2001 From: salvoravida Date: Thu, 16 Jan 2020 16:30:22 +0100 Subject: [PATCH] up build 4.2.6 --- lib/index.esm.js | 12 ++---------- lib/index.js | 12 ++---------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/lib/index.esm.js b/lib/index.esm.js index 3c5cea8..39ac60e 100644 --- a/lib/index.esm.js +++ b/lib/index.esm.js @@ -130,17 +130,9 @@ var reachify = function reachify(reduxHistory) { replace = _ref$replace === void 0 ? false : _ref$replace; if (transitioning || replace) { - reduxHistory.replace({ - pathname: to, - state: state, - key: "".concat(Date.now()) - }); + reduxHistory.replace(to, state); } else { - reduxHistory.push({ - pathname: to, - state: state, - key: "".concat(Date.now()) - }); + reduxHistory.push(to, state); } transitioning = true; diff --git a/lib/index.js b/lib/index.js index fbe25b6..e437c2f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -134,17 +134,9 @@ var reachify = function reachify(reduxHistory) { replace = _ref$replace === void 0 ? false : _ref$replace; if (transitioning || replace) { - reduxHistory.replace({ - pathname: to, - state: state, - key: "".concat(Date.now()) - }); + reduxHistory.replace(to, state); } else { - reduxHistory.push({ - pathname: to, - state: state, - key: "".concat(Date.now()) - }); + reduxHistory.push(to, state); } transitioning = true;