{"action":"created","issue":{"url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/87","repository_url":"https://api.github.com/repos/Profiscience/knockout-contrib","labels_url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/87/comments","events_url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/87/events","html_url":"https://github.com/Profiscience/knockout-contrib/issues/87","id":331118122,"node_id":"MDU6SXNzdWUzMzExMTgxMjI=","number":87,"title":"\"component\" plugin doesnt wait for queued promises on a context before creating instance of a view-model","user":{"login":"gandrisl","id":23049209,"node_id":"MDQ6VXNlcjIzMDQ5MjA5","avatar_url":"https://avatars1.githubusercontent.com/u/23049209?v=4","gravatar_id":"","url":"https://api.github.com/users/gandrisl","html_url":"https://github.com/gandrisl","followers_url":"https://api.github.com/users/gandrisl/followers","following_url":"https://api.github.com/users/gandrisl/following{/other_user}","gists_url":"https://api.github.com/users/gandrisl/gists{/gist_id}","starred_url":"https://api.github.com/users/gandrisl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandrisl/subscriptions","organizations_url":"https://api.github.com/users/gandrisl/orgs","repos_url":"https://api.github.com/users/gandrisl/repos","events_url":"https://api.github.com/users/gandrisl/events{/privacy}","received_events_url":"https://api.github.com/users/gandrisl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T09:48:26Z","updated_at":"2018-06-12T00:14:56Z","closed_at":null,"author_association":"NONE","body":"When following config is provided to a Route class, ComponentViewModel instance is created before promises queued on Context are finished. Results in error in VM constructor if trying to access properties of the Context that would have been set by a callback from a promise.\r\n `component: {\r\n        viewModel: ComponentViewModel,\r\n        template: template\r\n    }`\r\n"},"comment":{"url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/comments/396425751","html_url":"https://github.com/Profiscience/knockout-contrib/issues/87#issuecomment-396425751","issue_url":"https://api.github.com/repos/Profiscience/knockout-contrib/issues/87","id":396425751,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjQyNTc1MQ==","user":{"login":"caseyWebb","id":5419074,"node_id":"MDQ6VXNlcjU0MTkwNzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5419074?v=4","gravatar_id":"","url":"https://api.github.com/users/caseyWebb","html_url":"https://github.com/caseyWebb","followers_url":"https://api.github.com/users/caseyWebb/followers","following_url":"https://api.github.com/users/caseyWebb/following{/other_user}","gists_url":"https://api.github.com/users/caseyWebb/gists{/gist_id}","starred_url":"https://api.github.com/users/caseyWebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseyWebb/subscriptions","organizations_url":"https://api.github.com/users/caseyWebb/orgs","repos_url":"https://api.github.com/users/caseyWebb/repos","events_url":"https://api.github.com/users/caseyWebb/events{/privacy}","received_events_url":"https://api.github.com/users/caseyWebb/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T00:14:56Z","updated_at":"2018-06-12T00:14:56Z","author_association":"MEMBER","body":"When you say queued, you mean passed to `ctx.queue`, right? If so, it does not wait for those. You will need to unqueue them if they are needed by the component, or use the `init` plugin."}}
{"actor":{"display_login":"caseyWebb"}}