mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 01:03:50 +02:00
add @tanstack/query
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
instanceRequest,
|
||||
userRequest
|
||||
} from '../api';
|
||||
import { patchUserFromEvent } from '../query';
|
||||
import { processBulk, request } from '../service/request';
|
||||
import { AppDebug } from '../service/appConfig';
|
||||
import { database } from '../service/database';
|
||||
@@ -764,6 +765,7 @@ export const useUserStore = defineStore('User', () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
patchUserFromEvent(ref);
|
||||
return ref;
|
||||
}
|
||||
|
||||
@@ -920,9 +922,6 @@ export const useUserStore = defineStore('User', () => {
|
||||
if (locationStore.lastLocation.playerList.has(D.ref.id)) {
|
||||
inCurrentWorld = true;
|
||||
}
|
||||
if (args.cache) {
|
||||
userRequest.getUser(args.params);
|
||||
}
|
||||
if (userId !== currentUser.value.id) {
|
||||
database
|
||||
.getUserStats(D.ref, inCurrentWorld)
|
||||
|
||||
Reference in New Issue
Block a user