私は以下の2つの公開方法を持っていますが、クライアント検索ページの公開方法の1つを購読すると、もう1つはインデックスページのために上書きされます。Meteor publishが別の公開を上書きする
サーバー
Meteor.publish("task.index", function() {
TaskCollection.find()
}
Meteor.publish("task.index.search", function(state) {
TaskCollection.find({ state: state })
}
クライアント - 検索ページ
Meteor.subscribe("task.index.search", state)
// this will always be overwritten with "task.index" published collection
クライアント - インデックスページ
Meteor.subscribe("task.index")
誰もがこの問題を回避する方法を知っていますか?