Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

路由跳转写法的困惑routerRedux.push相关 #19

Open
dib-nhnl opened this issue Oct 12, 2017 · 1 comment
Open

路由跳转写法的困惑routerRedux.push相关 #19

dib-nhnl opened this issue Oct 12, 2017 · 1 comment

Comments

@dib-nhnl
Copy link

在教程里,提到基于action的跳转的时候,有如下例子。
// Outside Effects
dispatch(routerRedux.push('/logout'));

// With query
routerRedux.push({
pathname: '/logout',
query: {
page: 2,
},
});
为什么带参数的跳转,不需要dispatch了呢?
感到迷茫,还请解惑。

@LDD123
Copy link

LDD123 commented Oct 17, 2017

需要

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants