meteor-rxjs
meteor-rxjs copied to clipboard
findOne when not ready => undefinded
Hi,
I'm facing an issue with findOne function. Yes, when the subscription is not ready, the function return undefined.
Should we wait subscriptionReady for a findOne Operation? Or I'm going in the wrong direction?
Let me know :) Thank you
Everything is wrapped in a:
MeteorObservable.autorun().zone().subscribe(() => {
...
});
I was taking the result only if DDP._allSubscriptionsReady() is true... but I found that sometime DDP._allSubscriptionsReady() is true and the findOne returns undefined! (I'm sure it's not undefined)
Could you help me? :)