Meteor recently introduced template subscription capabilities. You can now call this.subscribe
from within a Temeplate.xyz.onCreated
call and the helper {{#if Template.subscriptionsReady}} will only be true once the subscriptions have gotten ready from the server.
Unfortunately this does not seem to be obviously compatible with subs-manager or subs-Cache
How woudl you use subs-Cache in-place of this.subscribe such that the subscription ids made by the subsciptions manager make it into _subscriptionHandles and _allSubsReady part of this.subscribe? Or otherwise asked, how do you get {{#if Template.subscriptionsReady}} and the function Template.instance().subscriptionsReady() to depend on Template subscriptions made with subs-Cache.
Example code that does not work:
# in some top level file
share.subsCache = new SubsCache(
expireAter: 5
cacheLimit: 10
)
#in a template file
Template.entryRevisionInfo.onCreated ->
share.subsCache.subscribe('somePub')