Skip to content

Commit

Permalink
Fix using deprecated functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannupekka committed Jan 25, 2016
1 parent c026186 commit bb945da
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.js
Expand Up @@ -21,10 +21,8 @@ export default (history, catchAllHandler) => {
);

if (transitionData) {
const { path, query, replace, state } = transitionData;
const method = replace ? 'replaceState' : 'pushState';

history[method](state, path, query);
const method = transitionData.replace ? 'replace' : 'push';
history[method](transitionData);
}

return action;
Expand Down

0 comments on commit bb945da

Please sign in to comment.