use action from store instead of directly modifying state in components

This commit is contained in:
pa
2026-03-08 20:15:37 +09:00
parent 3d3ad27ca0
commit eeb5288027
13 changed files with 61 additions and 8 deletions

View File

@@ -151,6 +151,10 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
state.nextClearVRCXCacheCheck = value;
}
function setNextGroupInstanceRefresh(value) {
state.nextGroupInstanceRefresh = value;
}
return {
// state,
@@ -159,6 +163,7 @@ export const useUpdateLoopStore = defineStore('UpdateLoop', () => {
nextDiscordUpdate,
ipcTimeout,
updateLoop,
setNextGroupInstanceRefresh,
setNextClearVRCXCacheCheck
};
});