From 233554a3d69f1cf3a509e540fc1623d17c357037 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 2 Dec 2017 22:00:42 +0200 Subject: 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 ! --- client/lib/unsavedEdits.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'client/lib/unsavedEdits.js') 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: -- cgit v1.2.3-1-g7c22