subscriptions: function() {
if (Meteor.userId()) {
subs.subscribe('subscriptions1');
subs.subscribe('subscriptions2');
subs.subscribe('subscriptions3');
subs.subscribe('subscriptions4');
subs.subscribe('subscriptions5');
subs.subscribe('subscriptions6');
subs.subscribe('subscriptions7');
subs.subscribe('subscriptions8');
subs.subscribe('subscriptions9');
subs.subscribe('subscriptions10');
subs.subscribe('subscriptions11');
}
}
如果我从上面的代码中删除最后一行订阅,它的工作正常。 如何在一个控制器中进行超过10个订阅?
答案 0 :(得分:0)
我认为您应该合并您的出版物(返回多个),例如:
'Warning: [react-router] Location "/_=_" did not match any routes'