{"action":"opened","issue":{"url":"https://api.github.com/repos/kadirahq/fast-render/issues/177","repository_url":"https://api.github.com/repos/kadirahq/fast-render","labels_url":"https://api.github.com/repos/kadirahq/fast-render/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/fast-render/issues/177/comments","events_url":"https://api.github.com/repos/kadirahq/fast-render/issues/177/events","html_url":"https://github.com/kadirahq/fast-render/issues/177","id":165849944,"number":177,"title":"undefined Meteor.user() when no connection established","user":{"login":"VitalyChe","id":2542906,"avatar_url":"https://avatars.githubusercontent.com/u/2542906?v=3","gravatar_id":"","url":"https://api.github.com/users/VitalyChe","html_url":"https://github.com/VitalyChe","followers_url":"https://api.github.com/users/VitalyChe/followers","following_url":"https://api.github.com/users/VitalyChe/following{/other_user}","gists_url":"https://api.github.com/users/VitalyChe/gists{/gist_id}","starred_url":"https://api.github.com/users/VitalyChe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitalyChe/subscriptions","organizations_url":"https://api.github.com/users/VitalyChe/orgs","repos_url":"https://api.github.com/users/VitalyChe/repos","events_url":"https://api.github.com/users/VitalyChe/events{/privacy}","received_events_url":"https://api.github.com/users/VitalyChe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-15T18:30:02Z","updated_at":"2016-07-15T18:30:02Z","closed_at":null,"body":"It seems the FastRender injects the DDP messages correctly (when no connection yet) but the messages (came with html especially user data) never get processed and saved into collections due to `Accounts _autoLoginEnabled=true`. Enabled `autoLogin` is [the first to send message](https://github.com/meteor/meteor/blob/be986fd70926c9dd8eff6d8866205f236c8562c4/packages/accounts-base/localstorage_token.js#L117-L122) (login) [to the live data connection](https://github.com/meteor/meteor/blob/dce2b20ddbe45da48c37f26813fce8d0c72d8c88/packages/ddp-client/livedata_connection.js#L434) (token is taken from local storage) \r\nAfter that every message is [buffered](https://github.com/meteor/meteor/blob/dce2b20ddbe45da48c37f26813fce8d0c72d8c88/packages/ddp-client/livedata_connection.js#L1249) (that the FastRender injects) but is not processed due to `_waitingForQuiescence` (the first login message is there) [until the connection is established](https://github.com/meteor/meteor/blob/dce2b20ddbe45da48c37f26813fce8d0c72d8c88/packages/ddp-client/livedata_connection.js#L1261-L1262)\r\n\r\nIt happens when there is some delay before connection is established\r\n\r\nAny ideas would be highly appreciated?"}}
{"actor":{"display_login":"VitalyChe"}}