From 1fbf2fdf11fbf3e24916e740c81852d2904035e7 Mon Sep 17 00:00:00 2001 From: Bruno Alves de Faria Date: Fri, 2 Feb 2018 13:46:42 -0200 Subject: [PATCH] Fixing reactivity issues in hotkeys manager --- Packages/ohif-hotkeys/client/classes/HotkeysManager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Packages/ohif-hotkeys/client/classes/HotkeysManager.js b/Packages/ohif-hotkeys/client/classes/HotkeysManager.js index ffeb4ffca..6c9368bc2 100644 --- a/Packages/ohif-hotkeys/client/classes/HotkeysManager.js +++ b/Packages/ohif-hotkeys/client/classes/HotkeysManager.js @@ -17,7 +17,9 @@ export class HotkeysManager { Tracker.autorun(() => { const contextName = OHIF.context.get(); - this.switchToContext(contextName); + + // Avoind falling in MongoDB collections reactivity + Tracker.nonreactive(() => this.switchToContext(contextName)); }); }