{"action":"created","issue":{"url":"https://api.github.com/repos/rematch/rematch/issues/533","repository_url":"https://api.github.com/repos/rematch/rematch","labels_url":"https://api.github.com/repos/rematch/rematch/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/rematch/rematch/issues/533/comments","events_url":"https://api.github.com/repos/rematch/rematch/issues/533/events","html_url":"https://github.com/rematch/rematch/issues/533","id":365577882,"node_id":"MDU6SXNzdWUzNjU1Nzc4ODI=","number":533,"title":"How to normalize data using Rematch?","user":{"login":"haysclark","id":138324,"node_id":"MDQ6VXNlcjEzODMyNA==","avatar_url":"https://avatars3.githubusercontent.com/u/138324?v=4","gravatar_id":"","url":"https://api.github.com/users/haysclark","html_url":"https://github.com/haysclark","followers_url":"https://api.github.com/users/haysclark/followers","following_url":"https://api.github.com/users/haysclark/following{/other_user}","gists_url":"https://api.github.com/users/haysclark/gists{/gist_id}","starred_url":"https://api.github.com/users/haysclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haysclark/subscriptions","organizations_url":"https://api.github.com/users/haysclark/orgs","repos_url":"https://api.github.com/users/haysclark/repos","events_url":"https://api.github.com/users/haysclark/events{/privacy}","received_events_url":"https://api.github.com/users/haysclark/received_events","type":"User","site_admin":false},"labels":[{"id":707549556,"node_id":"MDU6TGFiZWw3MDc1NDk1NTY=","url":"https://api.github.com/repos/rematch/rematch/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-01T18:06:22Z","updated_at":"2018-10-02T02:36:35Z","closed_at":null,"author_association":"NONE","body":"I was curious if there is an example of normalizing data with Rematch?\r\n\r\nThere was a pretty good discussion on this subject in #337; however, I was hoping a more general topic title would get more feedback and ideally examples.  I would love to see a Rematch example similar to the user/articles/comments example in [normalizr's readme](https://github.com/paularmstrong/normalizr).\r\n"},"comment":{"url":"https://api.github.com/repos/rematch/rematch/issues/comments/426127456","html_url":"https://github.com/rematch/rematch/issues/533#issuecomment-426127456","issue_url":"https://api.github.com/repos/rematch/rematch/issues/533","id":426127456,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjEyNzQ1Ng==","user":{"login":"d3dc","id":4175887,"node_id":"MDQ6VXNlcjQxNzU4ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/4175887?v=4","gravatar_id":"","url":"https://api.github.com/users/d3dc","html_url":"https://github.com/d3dc","followers_url":"https://api.github.com/users/d3dc/followers","following_url":"https://api.github.com/users/d3dc/following{/other_user}","gists_url":"https://api.github.com/users/d3dc/gists{/gist_id}","starred_url":"https://api.github.com/users/d3dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3dc/subscriptions","organizations_url":"https://api.github.com/users/d3dc/orgs","repos_url":"https://api.github.com/users/d3dc/repos","events_url":"https://api.github.com/users/d3dc/events{/privacy}","received_events_url":"https://api.github.com/users/d3dc/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T02:36:35Z","updated_at":"2018-10-02T02:36:35Z","author_association":"COLLABORATOR","body":"I tote this example around a lot: https://codesandbox.io/s/ql6m574l84\r\n\r\nThis uses normalizr and reselect (@rematch/select) to closely follow the links @ShMck posted. \r\n\r\nInstead of relying on multiple reducers to store each type of entity, a single reducer handles the abstraction by passing Normalizr schemas. \r\n\r\nThis was just a demo of complex selectors; I know delete has several ways it could be handled better. It might be worth it to scale this to the example @haysclark mentioned. "}}
{"actor":{"display_login":"d3dc"}}