perf(frontend): use WeakMap

This commit is contained in:
syuilo 2025-08-27 12:41:24 +09:00
parent c5bb881438
commit 98e07c3bd1
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ const logs = ref<{
const root = ref<AsUiRoot | undefined>(); const root = ref<AsUiRoot | undefined>();
const components = ref<Ref<AsUiComponent>[]>([]); const components = ref<Ref<AsUiComponent>[]>([]);
const uiKey = ref(0); const uiKey = ref(0);
const uiInspectorOpenedComponents = ref(new Map<AsUiComponent | Ref<AsUiComponent>, boolean>); const uiInspectorOpenedComponents = ref(new WeakMap<AsUiComponent | Ref<AsUiComponent>, boolean>);
const saved = miLocalStorage.getItem('scratchpad'); const saved = miLocalStorage.getItem('scratchpad');
if (saved) { if (saved) {