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,我想更新一个文档,但不想重新加载所有的反应路由,我使用iron:router 我无法使所有myCollection.find游标与{reactive:false}无反应 在Tracker.nonreactive中包装更新似乎不起作用 在客户机上: Router.route '/spot/:shortName', template: 'map' onAfterAction: -> spot = Spots.findOne({shortName: this.pa

我想更新一个文档,但不想重新加载所有的反应路由,我使用iron:router

我无法使所有myCollection.find游标与{reactive:false}无反应

在Tracker.nonreactive中包装更新似乎不起作用

在客户机上:

Router.route '/spot/:shortName',
    template: 'map'
    onAfterAction: ->
        spot = Spots.findOne({shortName: this.params.shortName}, {reactive: false})
        Session.set('selectedSpot', spot)
在服务器上:


Spots.updatespot._id,{$set:{codeIndex:codeIndex}}

您是在minimongo only数据库中更新文档,还是也在服务器上更新文档?能否提供更多的代码?@Kyll这是对minimongo的更新,但也会传播到服务器。那么这意味着您正在发布它?我们需要查看您的更多代码,以了解如何解决您的问题。更新在服务器上,而不是在minimongo上。