Yuki Takei 3 лет назад
Родитель
Сommit
4b94cf854e
1 измененных файлов с 0 добавлено и 21 удалено
  1. 0 21
      packages/remark-lsx/src/components/tag-cache-manager.ts

+ 0 - 21
packages/remark-lsx/src/components/tag-cache-manager.ts

@@ -1,21 +0,0 @@
-import { TagCacheManager } from '@growi/core';
-
-import { LsxContext } from './lsx-context';
-
-const LSX_STATE_CACHE_NS = 'lsx-state-cache';
-
-
-let _instance;
-
-export function getInstance(): TagCacheManager {
-  if (_instance == null) {
-    // create generateCacheKey implementation
-    const generateCacheKey = (lsxContext: LsxContext) => {
-      return `${lsxContext.pagePath}__${lsxContext.getStringifiedAttributes('_')}`;
-    };
-
-    _instance = new TagCacheManager(LSX_STATE_CACHE_NS, generateCacheKey);
-  }
-
-  return _instance;
-}