dvajs / dva

🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
https://dvajs.com/
MIT License
16.24k stars 3.17k forks source link

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

Open junyangfan opened 2 years ago

junyangfan commented 2 years ago

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

geekact commented 2 years ago

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

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