🌱 React and redux based, lightweight and elm-style framework. (Inspired by elm and choo)
MIT License
Bot releases are visible (Hide)
dva-core
, dva-immer
, dva-loading
, dva-no-router
, dva-react-router-3
, dva
dva-loading
dva-core
dva-core
dva-no-router
, dva
dva-no-router
dva
dva-core
put.resolve
to wait the effect to resolve. (@macroxing)dva-immer
dva
中文版 CHANGELOG:
put.resolve
调用其他的 effect,#1690中文版 CHANGELOG :
Published by sorrycc almost 7 years ago
dva/dynamic
, https://github.com/dvajs/dva/commit/060a6a7875b943bbfd00b58ced2ec4596395271d
dynamic.setDefaultLoadingComponent
, #1332dva/dynamic
should work without babel-plugin-add-module-exportsdva
Published by sorrycc about 7 years ago
Published by sorrycc about 7 years ago
详细的中文版发布日志请看 [email protected] 发布。
例如:
dispatch({ type: 'count/addAsync' })
.then(() => {
console.log('done');
});
dva/dynamic
util to dynamic load Route Component and modelsconst Users = dynamic({
app,
models: [
import('./models/users'),
],
component: import('./routes/Users'),
});
// render
<Route exact path="/users" component={Users} />
{
namespace: 'count',
effects: {
*a(action, { take }) {
// Before
yield take('count/b');
// After
yield take('b');
}
}
}
dva@2 based on react-router@4.
// model.js
export default {
namespace: 'count',
reducers: {
a() {},
},
effects: {
*a() {},
}
}
// Only execute effects.a, don't execute reducers.a
dispatch({ type: 'count/a' });
dva/mobile
Use dva-no-router instead.
Published by sorrycc almost 8 years ago
此版本无不 BREAK CHANGE,使用 [email protected] 的同学可无缝升级。
app.unmodel
支持 model 的取消注册,详见 API (#137)dva/saga
输出 redux-saga 的所有 API (#393, #432)app.model()
时检查命名冲突 (#203)301K
减少到 201K
,详见 #138
dva generate
辅助脚手架生成,并启用 roadhog 作为 server, build 和 test 工具This version of dva has no BREAK CHANGE. If you're using [email protected], feel free to upgrade with no modification.
app.unmodel
, checkout API for details (#137)dva/saga
(#393, #432)app.model()
(#203)301K
to 201K
, checkout #138 for detailsdva generate
, and use roadhog as the tool for server, build and testPublished by sorrycc almost 8 years ago
dva/effects
, it's passed to effect as second argumentapp.start()
, move config to dva()
Docs: Upgrade to 1.0.0
Published by sorrycc about 8 years ago
onError
hook supports dispatch action (#126, #136)onEffect
hook supports actionType, and we used it for implement effect level loading state in dva-loading (#94, dvajs/dva-loading#1, dvajs/dva-loading#4)throttle
type to effect (#129, #135)