Skip to content

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

@dib-nhnl

Description

@dib-nhnl

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions