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

Feature: 给effects的参数里第二个参数rootState改成getState,防止异步更新state出错 #149

Open
yinran100 opened this issue Jul 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@yinran100
Copy link

effects的异步操作,拿不到最新的rootState,导致更新错误,建议改成getState,或者增加一个参数!!

!!

@yinran100 yinran100 added the enhancement New feature or request label Jul 29, 2022
@hzyhbk
Copy link
Contributor

hzyhbk commented Aug 8, 2022

异步操作之后要拿最新的 rootState 要么新写一个 effects ;要么自己手动调 store.getState 就好了呀

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

No branches or pull requests

2 participants