{"action":"created","issue":{"url":"https://api.github.com/repos/riot/riot/issues/1020","labels_url":"https://api.github.com/repos/riot/riot/issues/1020/labels{/name}","comments_url":"https://api.github.com/repos/riot/riot/issues/1020/comments","events_url":"https://api.github.com/repos/riot/riot/issues/1020/events","html_url":"https://github.com/riot/riot/issues/1020","id":96408751,"number":1020,"title":"Conditional tags are still fully evaluated","user":{"login":"swese44","id":471731,"avatar_url":"https://avatars.githubusercontent.com/u/471731?v=3","gravatar_id":"","url":"https://api.github.com/users/swese44","html_url":"https://github.com/swese44","followers_url":"https://api.github.com/users/swese44/followers","following_url":"https://api.github.com/users/swese44/following{/other_user}","gists_url":"https://api.github.com/users/swese44/gists{/gist_id}","starred_url":"https://api.github.com/users/swese44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swese44/subscriptions","organizations_url":"https://api.github.com/users/swese44/orgs","repos_url":"https://api.github.com/users/swese44/repos","events_url":"https://api.github.com/users/swese44/events{/privacy}","received_events_url":"https://api.github.com/users/swese44/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/riot/riot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"GianlucaGuarini","id":879612,"avatar_url":"https://avatars.githubusercontent.com/u/879612?v=3","gravatar_id":"","url":"https://api.github.com/users/GianlucaGuarini","html_url":"https://github.com/GianlucaGuarini","followers_url":"https://api.github.com/users/GianlucaGuarini/followers","following_url":"https://api.github.com/users/GianlucaGuarini/following{/other_user}","gists_url":"https://api.github.com/users/GianlucaGuarini/gists{/gist_id}","starred_url":"https://api.github.com/users/GianlucaGuarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GianlucaGuarini/subscriptions","organizations_url":"https://api.github.com/users/GianlucaGuarini/orgs","repos_url":"https://api.github.com/users/GianlucaGuarini/repos","events_url":"https://api.github.com/users/GianlucaGuarini/events{/privacy}","received_events_url":"https://api.github.com/users/GianlucaGuarini/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/riot/riot/milestones/1","html_url":"https://github.com/riot/riot/milestones/2.3.0","labels_url":"https://api.github.com/repos/riot/riot/milestones/1/labels","id":1240718,"number":1,"title":"2.3.0","description":"","creator":{"login":"GianlucaGuarini","id":879612,"avatar_url":"https://avatars.githubusercontent.com/u/879612?v=3","gravatar_id":"","url":"https://api.github.com/users/GianlucaGuarini","html_url":"https://github.com/GianlucaGuarini","followers_url":"https://api.github.com/users/GianlucaGuarini/followers","following_url":"https://api.github.com/users/GianlucaGuarini/following{/other_user}","gists_url":"https://api.github.com/users/GianlucaGuarini/gists{/gist_id}","starred_url":"https://api.github.com/users/GianlucaGuarini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GianlucaGuarini/subscriptions","organizations_url":"https://api.github.com/users/GianlucaGuarini/orgs","repos_url":"https://api.github.com/users/GianlucaGuarini/repos","events_url":"https://api.github.com/users/GianlucaGuarini/events{/privacy}","received_events_url":"https://api.github.com/users/GianlucaGuarini/received_events","type":"User","site_admin":false},"open_issues":24,"closed_issues":19,"state":"open","created_at":"2015-08-04T18:24:14Z","updated_at":"2015-09-22T18:47:29Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-07-21T20:24:07Z","updated_at":"2015-09-29T13:51:14Z","closed_at":null,"body":"I have a use case where I want to render only one of several custom tags based on opts passed in. I have added an \"if\" conditional to each tag, assuming the conditional will be evaluated before the entire tag is evaluated/rendered, however all script logic in tags that should not be rendered is still executed.\r\n\r\n```javascript\r\n    <customTag1 if={opts.data.type === 'customTag1'} data={opts.data} />\r\n    <customTag2 if={opts.data.type === 'customTag2'} data={opts.data} /> \r\n    <customTag3 if={opts.data.type === 'customTag3'} data={opts.data} />\r\n```\r\nIn this example, if opts.data.type is \"customTag1\", instances of customTag2 and customTag3 are still created and their script blocks are executed.\r\n\r\nHow can I conditionally include custom tags? Thanks!"},"comment":{"url":"https://api.github.com/repos/riot/riot/issues/comments/144066930","html_url":"https://github.com/riot/riot/issues/1020#issuecomment-144066930","issue_url":"https://api.github.com/repos/riot/riot/issues/1020","id":144066930,"user":{"login":"clems71","id":2181443,"avatar_url":"https://avatars.githubusercontent.com/u/2181443?v=3","gravatar_id":"","url":"https://api.github.com/users/clems71","html_url":"https://github.com/clems71","followers_url":"https://api.github.com/users/clems71/followers","following_url":"https://api.github.com/users/clems71/following{/other_user}","gists_url":"https://api.github.com/users/clems71/gists{/gist_id}","starred_url":"https://api.github.com/users/clems71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clems71/subscriptions","organizations_url":"https://api.github.com/users/clems71/orgs","repos_url":"https://api.github.com/users/clems71/repos","events_url":"https://api.github.com/users/clems71/events{/privacy}","received_events_url":"https://api.github.com/users/clems71/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T13:51:14Z","updated_at":"2015-09-29T13:51:14Z","body":"Hi have the same problem as @swese44  on 2.2.4 and it seems pretty serious. I get the 'mount' event fired even if the 'if' attribute evaluates to 'false'."}}