Comments (4)
model
方法毫无疑问来源于 dva。
与 dva 不同的地方在于:
- 不用初始化 app 实例了(因此无法多应用实例);
- redux 这块,action 的 dispatch 方式不同,不用 saga(但支持自定义使用 middleware);
- 对路由的处理更简单,完全按照 react-router 4 的方式定义,没有创造新的复杂性。
更多可以查看文档。
from mirror.
@llh911001 是否可以认为是更轻量的dva?
from mirror.
@llh911001 谢谢回复
from mirror.
mirrorx 优点在于极大简化了 组件与model的交互,effects方法又返回了promise,流程的简洁很多,mirrorx只初始化一次,actions 中包含了所有的models,这样在也不用yield select...,model中更集中了业务逻辑!赞
from mirror.
Related Issues (20)
- Document usage of store.getState() in API HOT 1
- effects中 actions.routing改变hash但是没触发渲染 HOT 2
- 小程序 HOT 1
- history 包的引用方式发生改变,目前产生三个警告,需要升级写法 HOT 4
- reactv15x,react-router v3.x 的老项目 升级 ,那么 路由 的 onEnter 怎么处理? HOT 1
- 支持 react 16.8.x hooks吗? HOT 1
- 升级到最新版mirrorx后actions.routing.push无法正常跳转 HOT 1
- 支持下RN吧 HOT 1
- 页面点击刷新(F5)后点击菜单上其他页面没有反应 HOT 1
- @types/mirrorx 可否更新到最新版本呢 HOT 5
- 迁移到 React 17 报错:TypeError: Cannot set property reducers of #<Object> which has only a getter HOT 1
- 如何剥离react-router v4的路由 HOT 4
- H
- 支持Code-Splitting吗 HOT 21
- mirror与dva的区别? HOT 1
- 说说项目中使用mirrorx的情况 HOT 1
- 可以迁移到Rax吗,谢谢 HOT 1
- 请问有没有打算搞服务器端渲染 HOT 1
- 添加react-hot-loader遇到mirror.model报错,是否可以解决一下呢 HOT 8
- The demo in webpackbin isn't working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirror.