我认为您可以使用browserHistory
replace方法将历史状态替换为
somevalue未定义的新状态:
export class myComponent extends component { componentWillMount() { const value = this.props.location.state.somevalue; // clear state.somevalue from history browserHistory.replace({pathname: '/mycomponent',state: {} }); }}


