{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/910","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/910/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/910/events","html_url":"https://github.com/lhorie/mithril.js/issues/910","id":123261520,"number":910,"title":"How does events handler works ?","user":{"login":"accessibleweb","id":2615311,"avatar_url":"https://avatars.githubusercontent.com/u/2615311?v=3","gravatar_id":"","url":"https://api.github.com/users/accessibleweb","html_url":"https://github.com/accessibleweb","followers_url":"https://api.github.com/users/accessibleweb/followers","following_url":"https://api.github.com/users/accessibleweb/following{/other_user}","gists_url":"https://api.github.com/users/accessibleweb/gists{/gist_id}","starred_url":"https://api.github.com/users/accessibleweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/accessibleweb/subscriptions","organizations_url":"https://api.github.com/users/accessibleweb/orgs","repos_url":"https://api.github.com/users/accessibleweb/repos","events_url":"https://api.github.com/users/accessibleweb/events{/privacy}","received_events_url":"https://api.github.com/users/accessibleweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-12-21T11:38:22Z","updated_at":"2015-12-22T14:14:16Z","closed_at":null,"body":"Hi,\r\n\r\n...\r\nm.component(App,\r\n[m.component(Header),\r\nm.component(Content,...), ...]);\r\n...\r\n\r\nIf i add an event handler on one of theses view for exemple onclick.\r\nThe views function (for exemple Header) will be executed in order to do the diff strategy.\r\nI tried to put strategy none but nothing it do it again.\r\nHow can i prevent it ?\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/166626555","html_url":"https://github.com/lhorie/mithril.js/issues/910#issuecomment-166626555","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/910","id":166626555,"user":{"login":"accessibleweb","id":2615311,"avatar_url":"https://avatars.githubusercontent.com/u/2615311?v=3","gravatar_id":"","url":"https://api.github.com/users/accessibleweb","html_url":"https://github.com/accessibleweb","followers_url":"https://api.github.com/users/accessibleweb/followers","following_url":"https://api.github.com/users/accessibleweb/following{/other_user}","gists_url":"https://api.github.com/users/accessibleweb/gists{/gist_id}","starred_url":"https://api.github.com/users/accessibleweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/accessibleweb/subscriptions","organizations_url":"https://api.github.com/users/accessibleweb/orgs","repos_url":"https://api.github.com/users/accessibleweb/repos","events_url":"https://api.github.com/users/accessibleweb/events{/privacy}","received_events_url":"https://api.github.com/users/accessibleweb/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T14:14:16Z","updated_at":"2015-12-22T14:14:16Z","body":"Ok, this JS Fiddle, will break the mithril computation queue if i do a request on init without background flag.\r\nAnd so on page change it will do a redraw from scratch!\r\n\r\nhttps://jsfiddle.net/uj7zuaer/8/\r\n\r\nWhat is the best way to do request on init without breaking queue ?\r\nIt will be good to have an onload event on the controller.\r\nI could fix it getting the data on the view config if not init but i does not like this approach, is there a good practice?\r\n"}}