fire MeteorObservable.subscribe in offline
msio opened this issue · comments
Hi,
If client is offline MeteorObservable.subscribe
won't fire and Collection.find()
inside of MeteorObservable.subscribe
won't fire too. How can I achieve that Collection.find()
will fire every time ? My goal is to get cached data from minimongo even if client is offline
e.g.
MeteorObservable.subscribe('posts').subscribe(()=>{
this.sub = Collection.find();
});
thanks
Best Regards
Michal
Subscriptions are based on ddp-client
so it won't fire if you are offline. There are no cached data stored in minimongo
. minimongo
only keeps the data that is sent via websocket. When subscription is closed, it deletes the related data from minimongo
immediately.
Therefore, this is not an issue, if you would like to make a feature request; you can do it via meteor forums.
Thanks!