终极版的传奇放推不改变位置

问题描述 投票:0回答:1

我尝试当用户成功登录,但好像没有努力改变位置。我使用“连接反应的路由器”:“^ 6.2.2”,这是代码:

...
yield put(authenticationActions.getAuthenticationRequestSuccess({
      token,
      authProfile,
      companyProfile,
      userProfile,
    }));
    yield put(push('/com'));
...

我有终极版的Chrome插件,最后一个动作是:

{
  type: '@@router/CALL_HISTORY_METHOD',
  payload: {
    method: 'push',
    args: [
      '/com'
    ]
  }
}

但路径没有改变。任何想法,为什么?

react-router-v4 redux-saga
1个回答
0
投票

您已经阅读类似于你这个新鲜GitHub issue

© www.soinside.com 2019 - 2024. All rights reserved.