{"action":"created","issue":{"url":"https://api.github.com/repos/dvajs/dva/issues/24","repository_url":"https://api.github.com/repos/dvajs/dva","labels_url":"https://api.github.com/repos/dvajs/dva/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/dvajs/dva/issues/24/comments","events_url":"https://api.github.com/repos/dvajs/dva/issues/24/events","html_url":"https://github.com/dvajs/dva/issues/24","id":167551034,"number":24,"title":"讨论：插件机制","user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-26T08:40:14Z","updated_at":"2016-07-27T02:59:35Z","closed_at":null,"body":"dva 提供各种 hooks，然后通过 `.use()` 来接入。使用方法：\r\n\r\n```javascript\r\nconst app = dva();\r\napp.use(hmr());\r\napp.use(log());\r\n```\r\n\r\nhooks 列表：\r\n\r\n- `onError`\r\n- `onStateChange`，等同于 redux middleware\r\n- `onAction`\r\n- `onHmr`\r\n- `extraReducers`，这个比较纠结，唯一风格不同的，不知是否有更好的命名\r\n\r\n然后 `app.start()` 不再提供 `middlewares` 和 `reducers` 参数，这些配置本质上和 `models` 同级，而和 `start` 本身并无关系。\r\n"},"comment":{"url":"https://api.github.com/repos/dvajs/dva/issues/comments/235468662","html_url":"https://github.com/dvajs/dva/issues/24#issuecomment-235468662","issue_url":"https://api.github.com/repos/dvajs/dva/issues/24","id":235468662,"user":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T02:59:35Z","updated_at":"2016-07-27T02:59:35Z","body":"应该可以很方便得使用现有redux 中间件"}}
{"actor":{"display_login":"yiminghe"}}