Mat*_*att 14 react-router
我正在构建一个显示数据表的组件.当他们为该数据添加和删除过滤器时,我想用replaceState修改queryString,但据我所知,没有方法可以做到这一点.
有没有办法告诉转换使用replaceState而不是pushState?
tai*_*ion 1
指定history您的contextTypes,然后致电this.context.history.replaceState。
history
contextTypes
this.context.history.replaceState
如果您使用React.createClass,您还可以使用Historymixin。
React.createClass
History
归档时间:
10 年,10 月 前
查看次数:
741 次
最近记录:
10 年,7 月 前