admin管理员组文章数量:1327963
I am firing a method :
this.transitionTo('route', {},{search: this.state.search, type: this.state.type});
which passes query params in URL http://...route?search=%param10&type=param2
Is there equivalent method that passes these parameters without printing in URL ??
I am firing a method :
this.transitionTo('route', {},{search: this.state.search, type: this.state.type});
which passes query params in URL http://...route?search=%param10&type=param2
Is there equivalent method that passes these parameters without printing in URL ??
Share Improve this question asked Jan 13, 2015 at 23:26 Piotr LeniartekPiotr Leniartek 1,1872 gold badges15 silver badges33 bronze badges 1- Better to check this stackoverflow./questions/27891667/… – user2360560 Commented Jul 29, 2015 at 3:55
1 Answer
Reset to default 6Try this:
this.transitionTo("route", { search: this.state.search, type: this.state.type });
本文标签:
版权声明:本文标题:javascript - react-router transitionTo(routeNameOrPath, [params[, query]]) hide query from URL - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742223307a2435592.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论