{"action":"opened","issue":{"url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/issues/62","repository_url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client","labels_url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/issues/62/comments","events_url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/issues/62/events","html_url":"https://github.com/pjhjohn/jsonplaceholder-client/issues/62","id":175894162,"number":62,"title":"Duplication of information in state","user":{"login":"pjhjohn","id":2541685,"avatar_url":"https://avatars.githubusercontent.com/u/2541685?v=3","gravatar_id":"","url":"https://api.github.com/users/pjhjohn","html_url":"https://github.com/pjhjohn","followers_url":"https://api.github.com/users/pjhjohn/followers","following_url":"https://api.github.com/users/pjhjohn/following{/other_user}","gists_url":"https://api.github.com/users/pjhjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/pjhjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjhjohn/subscriptions","organizations_url":"https://api.github.com/users/pjhjohn/orgs","repos_url":"https://api.github.com/users/pjhjohn/repos","events_url":"https://api.github.com/users/pjhjohn/events{/privacy}","received_events_url":"https://api.github.com/users/pjhjohn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/pjhjohn/jsonplaceholder-client/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T23:57:50Z","updated_at":"2016-09-08T23:57:50Z","closed_at":null,"body":"Currently, `detail` and `list` key are the 2nd-topmost key in initial state defined under `/reducers`\r\n\r\nif accessed to `/posts/`, `list` has items with id `1` through `50`\r\nif accessed to `/posts/1`, `detail` has detailed information of post `#1`\r\nif accessed to `/posts/3`, `detail` has detailed information of post `#3`, overwriting the detailed information of post `#1`\r\n\r\nThis is not good for quick-rendering & source-of-truth idea of the state.\r\n\r\nTherefore, `detail` and `list` => unified under `data`(for example) key, having every fetched data. Behavior after modification is stated below :\r\n\r\nif accessed to `/posts/`, `data` has items with id `1` through `50`.\r\nif accessed to `/posts/1`, `data[\"1\"]` has detailed information of post `#1`, updating existing one.\r\nif accessed to `/posts/3`, `data[\"3\"]` has detailed information of post `#3`, updating existing one. `data[\"1\"]` still have its detailed contents."}}
{"actor":{"display_login":"pjhjohn"}}