Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor 流星在追踪器中被无限循环捕获_Meteor - Fatal编程技术网

Meteor 流星在追踪器中被无限循环捕获

Meteor 流星在追踪器中被无限循环捕获,meteor,Meteor,这是进一步的信息,从以前的提交,但我认为它会更清楚,如果我张贴这单独 帮助程序正在返回集合查询: Template.clientGrid.helpers({ 'programs': function () { var fullNameP = Session.get('clientName'); return Programs.find({FullName: fullNameP}); } }); 在模板中,它从“程序”打印出属性。例如: ... {{#each programs}

这是进一步的信息,从以前的提交,但我认为它会更清楚,如果我张贴这单独

帮助程序正在返回集合查询:

Template.clientGrid.helpers({
  'programs': function () {
  var fullNameP = Session.get('clientName');
  return Programs.find({FullName: fullNameP});
  }
});
在模板中,它从“程序”打印出属性。例如:

...
{{#each programs}}
  <p>{{formatCampYear CampYear}}: {{formatNotes Notes}}</p>
{{/each}}
....
编辑:这是设置会话的事件映射。似乎没有任何可疑之处。因为我是前期制作,所以我不会对该系列进行任何更新。在这一点上,它几乎是静态的

Template.clientSearchButton.events({
  'click #client-search-button': function(event) {
  event.preventDefault();
  var clientFullName = document.getElementById('full-name').value.toUpperCase();
  Session.set('clientName', clientFullName);
  mapAddress = Demographic.find({ "FullName": clientFullName }).map(function (a) { return (a.Address + " " + a.City + " " + a.State + " " + a.Country); });
  Meteor.myFunctions.initialize();
  }
});

在什么条件下设置clientName?程序集合多久更新一次?你能提供这两部分的代码吗?找到了问题。是register.helper formatCampYear负责帮助设置输出的某些格式。它正在设置另一个寄存器助手也在使用的会话。会话集发生冲突。我想知道这是否是与会话相关的循环。很高兴你明白了!在什么条件下设置clientName?程序集合多久更新一次?你能提供这两部分的代码吗?找到了问题。是register.helper formatCampYear负责帮助设置输出的某些格式。它正在设置另一个寄存器助手也在使用的会话。会话集发生冲突。我想知道这是否是与会话相关的循环。很高兴你明白了!
Template.clientSearchButton.events({
  'click #client-search-button': function(event) {
  event.preventDefault();
  var clientFullName = document.getElementById('full-name').value.toUpperCase();
  Session.set('clientName', clientFullName);
  mapAddress = Demographic.find({ "FullName": clientFullName }).map(function (a) { return (a.Address + " " + a.City + " " + a.State + " " + a.Country); });
  Meteor.myFunctions.initialize();
  }
});