chencheng (云谦)
chencheng (云谦)
@Jaivenj 可以不用配置,在 mock/ 下建文件写 mock 代码即可。
@lishichengyan 用 Chrome 试试呢?
@kriml76 升级 umi 到最新试试。 @kwzm https://umijs.org/docs/zh-Hans/faq.html#umi-dva-roadhog
@ElvenYao 关于部署,可以参考 https://umijs.org/guide/deploy.html
@wee911 目前还不行,正式发布会支持,通过配置额外的 reducers 。详见:https://github.com/sorrycc/dva/issues/7
@jetango , 我能想到的几种解决方案: 1. 列表 1 和列表 2 在全局 state 上存不同的 key 2. 返回列表 1 的时候重新加载一次数据 (不想重复加载,可以在 fetch 层做缓存)
@u0x01 https://github.com/sorrycc/dva-example-react-native
@DickyT 参考这个例子,https://github.com/dvajs/dva/tree/master/examples/dynamic-load
@liysw 学习 dva 请参考这个最新教程, #18
试试 [cnpm](https://github.com/cnpm/cnpm)。