React中函數式聲明組件node
dva 知識地圖es6
redux-saga 是一個用於管理 Redux 應用異步操做,能夠用來代替 redux-thunk 中間件。npm
《Redux-saga 中文文檔》redux
須要提早作一個學習,否則model裏面估計不太看得懂
其做用和redux-thunk
差很少,能夠用來替代redux-thunk
Sagas 是經過 Generator 函數來建立的,就是這貨funciton* xxx()
阮一峯《ECMAScript 6 入門》之Generator 函數的語法segmentfault
經過dva g model test的,手動將這個models/test.js文件刪除掉,會報這個錯。後端
Error in ./src/index.js Module not found: [CaseSensitivePathsPlugin] `/Users/Grea/Workspace/grea/kuaidi-ui/src/models/post.js` does not match the corresponding path on disk - File does not exist.
【解決方法】
嘗試執行 rm -r node_modules/.cache/babel-loader
再執行 npm start
issues:https://github.com/dvajs/dva/...babel