Meteor publish subscribe is not reactive

后端 未结 2 1019
日久生厌
日久生厌 2021-01-06 18:55

My client subscription routines are not refreshing when I update a collection:

server/publish.js

Meteor.publish(\'decisions\', funct         


        
2条回答
  •  孤城傲影
    2021-01-06 19:31

    This (excellent) article might help. To paraphrase:

    ...on the server, Meteor’s reactivity is limited to cursors returned by Meteor.publish() functions. The direct consequence of this is that unlike on the client, code will not magically re-run whenever data changes.

提交回复
热议问题