shallowReactive

This commit is contained in:
pa
2025-10-31 16:54:33 +09:00
committed by Natsumi
parent 6f29fff5ca
commit 45e1b3001c
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { reactive, watch } from 'vue';
import { reactive, shallowReactive, watch } from 'vue';
import { ElMessage } from 'element-plus';
import { defineStore } from 'pinia';
@@ -53,7 +53,7 @@ export const useWorldStore = defineStore('World', () => {
hasPersistData: false
});
let cachedWorlds = new Map();
const cachedWorlds = shallowReactive(new Map());
watch(
() => watchState.isLoggedIn,