mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-30 12:13:48 +02:00
refactor: store state
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { reactive, watch } from 'vue';
|
||||
import { watch } from 'vue';
|
||||
import { isRpcWorld } from '../shared/utils';
|
||||
import { watchState } from '../service/watchState';
|
||||
import { useFriendStore } from './friend';
|
||||
@@ -27,8 +27,6 @@ export const useVrStore = defineStore('Vr', () => {
|
||||
const userStore = useUserStore();
|
||||
const sharedFeedStore = useSharedFeedStore();
|
||||
|
||||
const state = reactive({});
|
||||
|
||||
watch(
|
||||
() => watchState.isFriendsLoaded,
|
||||
(isFriendsLoaded) => {
|
||||
@@ -178,8 +176,6 @@ export const useVrStore = defineStore('Vr', () => {
|
||||
}
|
||||
|
||||
return {
|
||||
state,
|
||||
|
||||
vrInit,
|
||||
saveOpenVROption,
|
||||
updateVrNowPlaying,
|
||||
|
||||
Reference in New Issue
Block a user