[英]Force rerun of subscribe in meteor
I have one question. 我有一个问题。 So, I want to publish only one object from collection to user and when user finish using that data I want him to rerun subscribe and get new object to work on. 因此,我只想从集合中向用户发布一个对象,当用户使用完这些数据后,我希望他重新运行subscription并获取一个新的对象进行处理。 How should I do that? 我应该怎么做? I am storing that one object in users minimongo because when user gets that object it becomes unavailable. 我将一个对象存储在用户minimongo中,因为当用户获取该对象时,该对象不可用。
So, if this helps for anyone: 因此,如果这对任何人有帮助:
Just stop subscription with handler.stop() and then subscribe again! 只需使用handler.stop()停止订阅,然后再次订阅即可!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.