{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/falcor/issues/477","labels_url":"https://api.github.com/repos/Netflix/falcor/issues/477/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/falcor/issues/477/comments","events_url":"https://api.github.com/repos/Netflix/falcor/issues/477/events","html_url":"https://github.com/Netflix/falcor/issues/477","id":102843478,"number":477,"title":"\"Cannot read property '$size' of undefined\" after call()","user":{"login":"dallonf","id":346300,"avatar_url":"https://avatars.githubusercontent.com/u/346300?v=3","gravatar_id":"","url":"https://api.github.com/users/dallonf","html_url":"https://github.com/dallonf","followers_url":"https://api.github.com/users/dallonf/followers","following_url":"https://api.github.com/users/dallonf/following{/other_user}","gists_url":"https://api.github.com/users/dallonf/gists{/gist_id}","starred_url":"https://api.github.com/users/dallonf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dallonf/subscriptions","organizations_url":"https://api.github.com/users/dallonf/orgs","repos_url":"https://api.github.com/users/dallonf/repos","events_url":"https://api.github.com/users/dallonf/events{/privacy}","received_events_url":"https://api.github.com/users/dallonf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Netflix/falcor/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-08-24T16:56:53Z","updated_at":"2015-10-29T19:58:43Z","closed_at":null,"body":"In my app, I have a `orgs.list.push` `call` route. It returns the following:\r\n\r\n```\r\nreturn [\r\n      {path: ['orgs', 'list']},\r\n      {path: ['orgs', 'list', 'push'], value: $atom({ id: id })}\r\n    ];\r\n```\r\n\r\nWhich I assume (docs on both `call` and the Router are very sparse at the moment) invalidates the entire `orgs.list` path and returns a value `{id: id}`. (I'm returning a value at the path of the method itself in order to return arbitrary data related to the operation. Is this the way you're supposed to that?)\r\n\r\nThis works pretty well, as long as there's _already_ some data under `orgs.list` in the cache. If not, it throws this error (I had to include line numbers manually due to some odd sourcemap configuration in my project):\r\n\r\n```\r\nTypeError: Cannot read property '$size' of undefined\r\n  at onNode (falcor/lib/invalidate/invalidate-path-sets-as-json-dense.js:102)\r\n  at walkPathSet (falcor/lib/walk/walk-path-set.js:109)\r\n  at walkPathSet (falcor/lib/walk/walk-path-set.js:112)\r\n  at invalidatePathSetsAsJsonDense (falcor/lib/invalidate/invalidate-path-sets-as-json-dense.js:45)\r\n  at InvalidateResponse.subscribeToInvalidateResponse [as _subscribe] (falcor/lib/response/InvalidateResponse.js:36)\r\n  at InvalidateResponse.Rx.Observable.observableProto.subscribe.observableProto.forEach (rx/dist/rx.js:1976)\r\n  at observableProto.finally.observableProto.ensure (rx/dist/rx.js:4242)\r\n  at tryCatcher (rx/dist/rx.js:567)\r\n  at setDisposable [as action] (rx/dist/rx.js:5233)\r\n  at ScheduledItem.invokeCore (rx/dist/rx.js:929)\r\n```\r\n\r\n(Update: I tried commenting out the `{path: ['orgs', 'list', 'push'], value: $atom({ id: id })}` line, since that's a somewhat suspect thing that I'm trying - but it didn't seem to help, so it's probably unrelated)"},"comment":{"url":"https://api.github.com/repos/Netflix/falcor/issues/comments/152301899","html_url":"https://github.com/Netflix/falcor/issues/477#issuecomment-152301899","issue_url":"https://api.github.com/repos/Netflix/falcor/issues/477","id":152301899,"user":{"login":"sdesai","id":46587,"avatar_url":"https://avatars.githubusercontent.com/u/46587?v=3","gravatar_id":"","url":"https://api.github.com/users/sdesai","html_url":"https://github.com/sdesai","followers_url":"https://api.github.com/users/sdesai/followers","following_url":"https://api.github.com/users/sdesai/following{/other_user}","gists_url":"https://api.github.com/users/sdesai/gists{/gist_id}","starred_url":"https://api.github.com/users/sdesai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdesai/subscriptions","organizations_url":"https://api.github.com/users/sdesai/orgs","repos_url":"https://api.github.com/users/sdesai/repos","events_url":"https://api.github.com/users/sdesai/events{/privacy}","received_events_url":"https://api.github.com/users/sdesai/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T19:58:43Z","updated_at":"2015-10-29T19:58:43Z","body":"Hey @rnicholus, I bumped up a couple of deps to the latest (which I just published yesterday), and it seems to work fine for me:\r\n\r\n```\r\n[~/dev/github/satyend/fullstack-react] (master) $ git diff\r\ndiff --git a/package.json b/package.json\r\nindex 02a6f04..2c12e21 100644\r\n--- a/package.json\r\n+++ b/package.json\r\n@@ -8,10 +8,10 @@\r\n   \"dependencies\": {\r\n     \"body-parser\": \"1.14.1\",\r\n     \"express\": \"4.13.3\",\r\n-    \"falcor\": \"0.1.13\",\r\n+    \"falcor\": \"0.1.14\",\r\n     \"falcor-express\": \"0.1.2\",\r\n     \"falcor-http-datasource\": \"0.1.2\",\r\n-    \"falcor-router\": \"0.2.9\",\r\n+    \"falcor-router\": \"0.2.11\",\r\n     \"react\": \"0.14.0\",\r\n     \"react-dom\": \"0.14.0\"\r\n   },\r\n```\r\n\r\n<img width=\"1412\" alt=\"screen shot 2015-10-29 at 12 54 50 pm\" src=\"https://cloud.githubusercontent.com/assets/46587/10830385/910163d6-7e3c-11e5-991a-68518ff70aae.png\">\r\n"}}