Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.35 KB

CHANGELOG.md

File metadata and controls

43 lines (25 loc) · 1.35 KB

0.0.6

  • Change app.start(elementId) to app.start(domElement)

0.0.5

  • 5 - Prepare umd build before publish, then we can make demo on jsfiddle and jsbin more easily

0.0.4

  • Change router format from jsx element to component function
  • Export render from app.start, so we can apply hmr to routes and components, HMR Example

Why

先说 Router 。之前是这样的:

app.router(
  <Route path="/" component={App} />
);

这有几个问题:

  1. 不支持 Dynamic Routing
  2. 有多个路由配置时,由于 jsx 的限制,必须有一个额外的 element 把它们包含起来。比如:<div><Route path="/a" /><Route path="/b" /></div>
  3. HMR 支持问题。<Router> 不放外面传入会触发 react-router 的 rerender,而 react-router 不允许 rerender

另外,app.start return render 方法纯粹是为了支持 components 和 routes 的 HMR,之后如果找到更好的方法,会去掉。

0.0.3

  • 4 - Extend effects, support takeLatest and takeEvery

0.0.2

  • Add fetch, so we can import fetch from 'dva/fetch'

0.0.1

  • First version