Make GroupStoreCache global for cross-package access

pull/21833/head
Luke Barnard 2017-10-24 10:39:47 +01:00
parent 65ce71e6af
commit 3ae31dd426
1 changed files with 3 additions and 4 deletions

View File

@ -33,8 +33,7 @@ class GroupStoreCache {
}
}
let singletonGroupStoreCache = null;
if (!singletonGroupStoreCache) {
singletonGroupStoreCache = new GroupStoreCache();
if (global.singletonGroupStoreCache === undefined) {
global.singletonGroupStoreCache = new GroupStoreCache();
}
module.exports = singletonGroupStoreCache;
export default global.singletonGroupStoreCache;