I am currently passing my state on route change like below:
After you used the state, dispatch an action with an empty state again to clean the state.
this.props.dispatch(replace({ ...this.props.location, state: undefined });