Skip to content

Commit

Permalink
up build 4.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
salvoravida committed Jan 16, 2020
1 parent c876b5a commit 85bb476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions lib/index.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 2 additions & 10 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85bb476

Please sign in to comment.