mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 09:38:49 +01:00
Move global subscription to template subscription so that subscription
will stop when template is unused. It's very important for efficiency espacially with large number of users. Thanks to mfshiu !
This commit is contained in:
parent
fa281e3f5f
commit
233554a3d6
5 changed files with 14 additions and 11 deletions
|
|
@ -1,5 +1,3 @@
|
|||
Meteor.subscribe('my-avatars');
|
||||
|
||||
Template.userAvatar.helpers({
|
||||
userData() {
|
||||
// We need to handle a special case for the search results provided by the
|
||||
|
|
@ -54,6 +52,8 @@ Template.userAvatarInitials.helpers({
|
|||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.error = new ReactiveVar('');
|
||||
|
||||
Meteor.subscribe('my-avatars');
|
||||
},
|
||||
|
||||
avatarUrlOptions() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue