{"action":"opened","issue":{"url":"https://api.github.com/repos/paldepind/snabbdom/issues/40","labels_url":"https://api.github.com/repos/paldepind/snabbdom/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/paldepind/snabbdom/issues/40/comments","events_url":"https://api.github.com/repos/paldepind/snabbdom/issues/40/events","html_url":"https://github.com/paldepind/snabbdom/issues/40","id":120969510,"number":40,"title":"Possible issue when nesting thunks","user":{"login":"4xrsJCr9","id":9124547,"avatar_url":"https://avatars.githubusercontent.com/u/9124547?v=3","gravatar_id":"","url":"https://api.github.com/users/4xrsJCr9","html_url":"https://github.com/4xrsJCr9","followers_url":"https://api.github.com/users/4xrsJCr9/followers","following_url":"https://api.github.com/users/4xrsJCr9/following{/other_user}","gists_url":"https://api.github.com/users/4xrsJCr9/gists{/gist_id}","starred_url":"https://api.github.com/users/4xrsJCr9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4xrsJCr9/subscriptions","organizations_url":"https://api.github.com/users/4xrsJCr9/orgs","repos_url":"https://api.github.com/users/4xrsJCr9/repos","events_url":"https://api.github.com/users/4xrsJCr9/events{/privacy}","received_events_url":"https://api.github.com/users/4xrsJCr9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T09:35:41Z","updated_at":"2015-12-08T09:35:41Z","closed_at":null,"body":"Hello,\r\n\r\nI am using a thunk-like vnode to emulate components with their own local state. It is common for a thunk-like component to have child components (at arbitrary depth) which are also the same type of  thunk-like components.\r\n\r\nAdding and updating vnodes work correctly, but the ```removeVnodes``` function does not handle the nested thunk-like components correctly. It seems that the ```removeVnodes``` and ```invokeDestroyHook``` functions would have to be updated to correctly handle nested thunks.\r\n\r\nHaving a thunk as the root vnode also causes trouble in the ```patch``` function.\r\n\r\nUnfortunately, I am using clojurescript, so I cannot send you a minimal test case (or be a 100% certain that the issue exists at all)."}}