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

在rn项目中使用dva的问题:put(NavigationActions.back())失效 #21

Open
xiaohuoni opened this issue Sep 7, 2018 · 0 comments
Open

Comments

@xiaohuoni
Copy link

使用dispatch(NavigationActions.back())可以返回。
同一个按钮,使用dispatch({type:"app/login"})

effects: {
    *login({ payload }, { call, put }) {
         yield put(NavigationActions.back())
    }
},

使用put就不能返回了。
讲道理,put和dispatch是一样的功能吧?
可重现地址:
https://github.com/react-native-examples/react-native-dva-quick

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

1 participant