Meteor-Community-Packages/meteor-roles

Add ability to disable the roles subscription

開放

#256 建立於 2017年11月2日

 (9 則留言) (1 個反應) (0 位負責人)JavaScript (161 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (919 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Currently every user who visits the site creates a subscription to the roles collection. However, this is a waste since we never update that collection, thus it would be better to just embed the list of roles into the source code. I wish we could disable this subscription globally, or make it use a "virtual collection" of some sort that doesn't have any server overhead. Any idea how this could be done?

貢獻者指南