{"action":"opened","issue":{"url":"https://api.github.com/repos/hoplon/hoplon/issues/126","repository_url":"https://api.github.com/repos/hoplon/hoplon","labels_url":"https://api.github.com/repos/hoplon/hoplon/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/hoplon/hoplon/issues/126/comments","events_url":"https://api.github.com/repos/hoplon/hoplon/issues/126/events","html_url":"https://github.com/hoplon/hoplon/issues/126","id":148132890,"number":126,"title":"if-tpl and handlers inside the children nodes","user":{"login":"roti","id":919724,"avatar_url":"https://avatars.githubusercontent.com/u/919724?v=3","gravatar_id":"","url":"https://api.github.com/users/roti","html_url":"https://github.com/roti","followers_url":"https://api.github.com/users/roti/followers","following_url":"https://api.github.com/users/roti/following{/other_user}","gists_url":"https://api.github.com/users/roti/gists{/gist_id}","starred_url":"https://api.github.com/users/roti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roti/subscriptions","organizations_url":"https://api.github.com/users/roti/orgs","repos_url":"https://api.github.com/users/roti/repos","events_url":"https://api.github.com/users/roti/events{/privacy}","received_events_url":"https://api.github.com/users/roti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-13T17:45:24Z","updated_at":"2016-04-13T17:45:24Z","closed_at":null,"body":"Hi,\r\n\r\nI'm not sure if this is a bug, but I'm posting it anyway. `if-tpl` does not seem to work when the predicate cell is changed by a handler from one of its nodes. Example:\r\n```clojure\r\n(defc visible false)\r\n;;....\r\n(button \"show!\" :click #(swap! visible not))\r\n(div\r\n  (if-tpl visible\r\n          (button \"hide!\" :click #(swap! visible not))))\r\n```\r\nClicking only on \"show!\" works as expected: second button is shown and hidden alternatively.\r\n\r\nClicking on \"show!\" and then on \"hide!\" works only the first time:\r\n* click on \"show!\" -> second button becomes visible\r\n* click on \"hide!\" -> second button disappears\r\n* click on \"show!\" again -> second button becomes visible, as expected\r\n* click on \"hide!\" again -> nothing happens\r\n\r\nCheers,\r\nRăzvan"}}