Merge pull request #1524 from matrix-org/luke/groups-store-true-global
Make GroupStoreCache global for cross-package access
This commit is contained in:
commit
f29f627c31
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue