{"action":"created","issue":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/264","labels_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/264/comments","events_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/264/events","html_url":"https://github.com/Yomguithereal/baobab/issues/264","id":87256503,"number":264,"title":"Facet update not triggered when \"child\" facet updated","user":{"login":"tnrich","id":2730609,"avatar_url":"https://avatars.githubusercontent.com/u/2730609?v=3","gravatar_id":"","url":"https://api.github.com/users/tnrich","html_url":"https://github.com/tnrich","followers_url":"https://api.github.com/users/tnrich/followers","following_url":"https://api.github.com/users/tnrich/following{/other_user}","gists_url":"https://api.github.com/users/tnrich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnrich/subscriptions","organizations_url":"https://api.github.com/users/tnrich/orgs","repos_url":"https://api.github.com/users/tnrich/repos","events_url":"https://api.github.com/users/tnrich/events{/privacy}","received_events_url":"https://api.github.com/users/tnrich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yomguithereal/baobab/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-11T08:18:28Z","updated_at":"2015-06-16T00:07:15Z","closed_at":null,"body":"Hey @Yomguithereal, \r\n\r\nI am having an issue with one of my facets not being updated even when another facet it should be listening to is updated.\r\n\r\nFor example, say I have this tree:\r\n```\r\nfacets: {\r\n     rowData: {\r\n\t\t\tcursors: {\r\n\t\t\t\tsequenceData: ['vectorEditorState', 'sequenceData'],\r\n\t\t\t},\r\n\t\t\tfacets: {\r\n\t\t\t\tbpsPerRow: 'bpsPerRow',\r\n\t\t\t},\r\n\t\t\tget: function(state) {\r\n\t\t\t\treturn prepareRowData(state.sequenceData, state.bpsPerRow);\r\n\t\t\t}\r\n\t\t},\r\n\t\tvisibleRowsData: {\r\n\t\t\tcursors: {\r\n\t\t\t\tvisibleRows: ['vectorEditorState', 'visibleRows']\r\n\t\t\t},\r\n\t\t\tfacets: {\r\n\t\t\t\trowData: 'rowData'\r\n\t\t\t},\r\n\t\t\tget: function(state) {\r\n\t\t\t\t\t//do something\r\n\t\t\t}\r\n\t\t}\r\n}\r\n```\r\n\r\nWhen the rowData facet is updated, I want the visibleRowsData facet to be updated as well, but visibleRowsData isn't updating. Is there something I'm missing about this? I was reading in #240 about facets updating \"lazily\". Does this have something to do with that? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/Yomguithereal/baobab/issues/comments/112241671","html_url":"https://github.com/Yomguithereal/baobab/issues/264#issuecomment-112241671","issue_url":"https://api.github.com/repos/Yomguithereal/baobab/issues/264","id":112241671,"user":{"login":"tnrich","id":2730609,"avatar_url":"https://avatars.githubusercontent.com/u/2730609?v=3","gravatar_id":"","url":"https://api.github.com/users/tnrich","html_url":"https://github.com/tnrich","followers_url":"https://api.github.com/users/tnrich/followers","following_url":"https://api.github.com/users/tnrich/following{/other_user}","gists_url":"https://api.github.com/users/tnrich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnrich/subscriptions","organizations_url":"https://api.github.com/users/tnrich/orgs","repos_url":"https://api.github.com/users/tnrich/repos","events_url":"https://api.github.com/users/tnrich/events{/privacy}","received_events_url":"https://api.github.com/users/tnrich/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T00:07:15Z","updated_at":"2015-06-16T00:07:15Z","body":"hey @Yomguithereal, any thoughts on solving this issue? would a runnable example of the code in question help?"}}