perf(frontend): use WeakMap
This commit is contained in:
parent
c5bb881438
commit
98e07c3bd1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue