Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Meteor 22.214.171.124] Accounts.onLogin not fired if disabled cache and slow network #10157
This still exists on build 1.8.1
This just started happening, so I suspect it is a timing bug that gets exacerbated by disabling the cache.
Anyone know of a way to work around this on Cordova builds?
I made some progress tracking this down.
I am assuming that the timing of this code running is likely pretty tricky. So I propose to add another internal method to
This function will check that the user is already logged in, if true then go ahead and schedule the execution of the callback with
I have it all tested out in my config and it works well.
I will have PR up in a jiffy.