mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-25 21:24:14 +02:00
perf(frontend): use WeakMap
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user