{"action":"created","issue":{"url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/58","repository_url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture","labels_url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/58/comments","events_url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/58/events","html_url":"https://github.com/azu/JavaScript-Plugin-Architecture/issues/58","id":106218847,"number":58,"title":"Redux","user":{"login":"azu","id":19714,"avatar_url":"https://avatars.githubusercontent.com/u/19714?v=3","gravatar_id":"","url":"https://api.github.com/users/azu","html_url":"https://github.com/azu","followers_url":"https://api.github.com/users/azu/followers","following_url":"https://api.github.com/users/azu/following{/other_user}","gists_url":"https://api.github.com/users/azu/gists{/gist_id}","starred_url":"https://api.github.com/users/azu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azu/subscriptions","organizations_url":"https://api.github.com/users/azu/orgs","repos_url":"https://api.github.com/users/azu/repos","events_url":"https://api.github.com/users/azu/events{/privacy}","received_events_url":"https://api.github.com/users/azu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/labels/proposal","name":"proposal","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-09-13T14:03:14Z","updated_at":"2016-06-03T05:51:37Z","closed_at":"2016-06-03T05:50:45Z","body":"# Reduxのアーキテクチャ\r\nURL: https://github.com/rackt/redux\r\n\r\n## どう書ける?\r\n\r\n```js\r\nimport { createStore, combineReducers, applyMiddleware } from 'redux';\r\n\r\n// applyMiddleware takes createStore() and returns\r\n// a function with a compatible API.\r\nlet createStoreWithMiddleware = applyMiddleware(logger, crashReporter)(createStore);\r\n\r\n// Use it like you would use createStore()\r\nlet todoApp = combineReducers(reducers);\r\nlet store = createStoreWithMiddleware(todoApp);\r\n```\r\n\r\n## どういう仕組み?\r\n\r\n- 高階関数をapplyしている\r\n- http://rackt.github.io/redux/docs/advanced/Middleware.html\r\n- その機構のコードへのリンク\r\n- 同様の仕組みをDispatcherベース(Flux向け)で書く\r\n- その仕組みやプラグインについてドキュメントへのリンク\r\n\r\n## どういう事に向いてる?\r\n\r\n- アスペクト的に前後に処理を挟めるためログ\r\n- 値自体は直接操作するわけではないが、受取るデータは変換できる\r\n\r\n## どういう事に向いていない?\r\n\r\n- 変換の仕組み上書き換え等を行うプラグインを扱いにくい 等\r\n\r\n## この仕組みを使ってるもの\r\n\r\n- Connectに似ている\r\n\r\n----\r\n\r\n## チェックリスト\r\n\r\n- [x] どう書ける?\r\n- [x] どういう仕組み?\r\n- [x] どういう用途に向いている?\r\n- [x] どういう用途に向いていない?\r\n- [ ] この仕組みを使っているもの\r\n- [x] 実装してみよう\r\n- [ ] エコシステム\r\n- [ ] 目次を追加"},"comment":{"url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/comments/223496475","html_url":"https://github.com/azu/JavaScript-Plugin-Architecture/issues/58#issuecomment-223496475","issue_url":"https://api.github.com/repos/azu/JavaScript-Plugin-Architecture/issues/58","id":223496475,"user":{"login":"azu","id":19714,"avatar_url":"https://avatars.githubusercontent.com/u/19714?v=3","gravatar_id":"","url":"https://api.github.com/users/azu","html_url":"https://github.com/azu","followers_url":"https://api.github.com/users/azu/followers","following_url":"https://api.github.com/users/azu/following{/other_user}","gists_url":"https://api.github.com/users/azu/gists{/gist_id}","starred_url":"https://api.github.com/users/azu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azu/subscriptions","organizations_url":"https://api.github.com/users/azu/orgs","repos_url":"https://api.github.com/users/azu/repos","events_url":"https://api.github.com/users/azu/events{/privacy}","received_events_url":"https://api.github.com/users/azu/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T05:51:37Z","updated_at":"2016-06-03T05:51:37Z","body":"https://azu.gitbooks.io/javascript-plugin-architecture/content/ja/Redux/ Reduxの章ひとまず終わり!"}}
{"actor":{"display_login":"azu"}}