{"action":"closed","issue":{"url":"https://api.github.com/repos/faassen/reselect/issues/47","labels_url":"https://api.github.com/repos/faassen/reselect/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/faassen/reselect/issues/47/comments","events_url":"https://api.github.com/repos/faassen/reselect/issues/47/events","html_url":"https://github.com/faassen/reselect/issues/47","id":107401296,"number":47,"title":"Memoizing Hierarchial Selectors ","user":{"login":"ronag","id":3065230,"avatar_url":"https://avatars.githubusercontent.com/u/3065230?v=3","gravatar_id":"","url":"https://api.github.com/users/ronag","html_url":"https://github.com/ronag","followers_url":"https://api.github.com/users/ronag/followers","following_url":"https://api.github.com/users/ronag/following{/other_user}","gists_url":"https://api.github.com/users/ronag/gists{/gist_id}","starred_url":"https://api.github.com/users/ronag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronag/subscriptions","organizations_url":"https://api.github.com/users/ronag/orgs","repos_url":"https://api.github.com/users/ronag/repos","events_url":"https://api.github.com/users/ronag/events{/privacy}","received_events_url":"https://api.github.com/users/ronag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-09-20T16:11:55Z","updated_at":"2015-09-28T10:27:15Z","closed_at":"2015-09-28T10:27:15Z","body":"I'm a bit stuck on how one would go about memorising the following selector using this library:\r\n\r\n```javascript\r\nexport function selectItem(items, id) {\r\n  const item = items[id]\r\n  return {\r\n    id,\r\n    ...item && {\r\n      children: item.children.map((id) => selectItem(items, id))\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nCurrently if any item in the items state is modified all of the selections need to be rebuilt.\r\n\r\nAny suggestions on how to go about with these kind of scenarios?\r\n\r\nA more complete example: https://gist.github.com/ronag/bc8b9a33da172520e123"}}