{"action":"opened","issue":{"url":"https://api.github.com/repos/abedev/abe/issues/72","repository_url":"https://api.github.com/repos/abedev/abe","labels_url":"https://api.github.com/repos/abedev/abe/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/abedev/abe/issues/72/comments","events_url":"https://api.github.com/repos/abedev/abe/issues/72/events","html_url":"https://github.com/abedev/abe/issues/72","id":133918512,"number":72,"title":"Cannot use app-wide middleware","user":{"login":"back2dos","id":509501,"avatar_url":"https://avatars.githubusercontent.com/u/509501?v=3","gravatar_id":"","url":"https://api.github.com/users/back2dos","html_url":"https://github.com/back2dos","followers_url":"https://api.github.com/users/back2dos/followers","following_url":"https://api.github.com/users/back2dos/following{/other_user}","gists_url":"https://api.github.com/users/back2dos/gists{/gist_id}","starred_url":"https://api.github.com/users/back2dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/back2dos/subscriptions","organizations_url":"https://api.github.com/users/back2dos/orgs","repos_url":"https://api.github.com/users/back2dos/repos","events_url":"https://api.github.com/users/back2dos/events{/privacy}","received_events_url":"https://api.github.com/users/back2dos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T08:47:15Z","updated_at":"2016-02-16T08:47:15Z","closed_at":null,"body":"The reason is that the router gets initialized too soon: https://github.com/abedev/abe/blob/master/src/abe/App.hx#L27\r\n\r\nRegistering the router in nextTick does work around the issue."}}