i use gadicohen:headers
headers.ready() on Template.onCreated to get current user headers.get(‘host’), then subscribe data base on the headers.get(‘host’).
everything is able to Spiderable except those subscriptions which subscribed in headers.ready().
is there anyway to fix this?
here are some example of our use case
Template.layout.onCreated(function(){
let tpl = this;
headers.ready(function() {
tpl.domain = () => headers.get('host');
tpl.subscribe("company", tpl.domain());
})
});