You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const sub = MeteorObservable.subscribe('mySubscriptionForSomeData');
const autorun = MeteorObservable.autorun();
Observable.merge(sub, autorun).subscribe(() => {
this.jobs = SomeCollection.find().zone(); // Data is ready here
}, (err) => {
console.log(err); // error fetching data
}, () => {
console.log('This will print always, whether data is fetched or err happened');
});
Hi,
To run arbitrary code when a subscription changes I've always used the snippet at readiness ?
It leverages the fact that "ready()" is a reactive data source.
How do I achieve the same with meteor-rxjs ?
Thanks,
Raffaele
The text was updated successfully, but these errors were encountered: