1import createHistory from 'history/createBrowserHistory'
2
3...
4
5componentDidMount(){
6 const history = createHistory();
7 if (history.location.state && history.location.state.transaction) {
8 let state = { ...history.location.state };
9 delete state.transaction;
10 history.replace({ ...history.location, state });
11 }
12}
13