diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-12-02 22:00:42 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-12-02 22:00:42 +0200 |
commit | 233554a3d69f1cf3a509e540fc1623d17c357037 (patch) | |
tree | 0321320f8be205aaf558b8912c4d63f98fa40639 /client/lib/unsavedEdits.js | |
parent | fa281e3f5f7362797224c0eb11faec26351a407d (diff) | |
download | wekan-233554a3d69f1cf3a509e540fc1623d17c357037.tar.gz wekan-233554a3d69f1cf3a509e540fc1623d17c357037.tar.bz2 wekan-233554a3d69f1cf3a509e540fc1623d17c357037.zip |
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 !
Diffstat (limited to 'client/lib/unsavedEdits.js')
-rw-r--r-- | client/lib/unsavedEdits.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/client/lib/unsavedEdits.js b/client/lib/unsavedEdits.js index 17bb29b5..9c02eb84 100644 --- a/client/lib/unsavedEdits.js +++ b/client/lib/unsavedEdits.js @@ -1,5 +1,3 @@ -Meteor.subscribe('unsaved-edits'); - // `UnsavedEdits` is a global key-value store used to save drafts of user // inputs. We used to have the notion of a `cachedValue` that was local to a // component but the global store has multiple advantages: |