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 Request] dispatch可以传入一个数组吗? #2489

Open
junyangfan opened this issue Apr 25, 2022 · 1 comment
Open

[Feature Request] dispatch可以传入一个数组吗? #2489

junyangfan opened this issue Apr 25, 2022 · 1 comment

Comments

@junyangfan
Copy link

一个dispatch可以传入多个对象,触发多个effects,例如:
dispatch([
{ type: 'apiLand/getHome' },
{ type: 'apiLand/getList' }
])

@geekact
Copy link

geekact commented Apr 25, 2022

dva目前不在维护状态,恐怕难以兼容后续react-18的相关项目。

试试这几个替代方案:
https://github.com/foca-js/foca
https://github.com/rematch/rematch
https://github.com/reduxjs/redux-toolkit

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