kadirahq / fast-render

Render you app even before the DDP connection is live. - magic?
MIT License
560 stars 80 forks source link

undefined Meteor.user() when no connection established #177

Closed VitalyChe closed 7 years ago

VitalyChe commented 7 years ago

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 (login) to the live data connection (token is taken from local storage) After that every message is buffered (that the FastRender injects) but is not processed due to _waitingForQuiescence (the first login message is there) until the connection is established

It happens when there is some delay before connection is established

Any ideas would be highly appreciated?

VitalyChe commented 7 years ago

https://github.com/kadirahq/fast-render/issues/176