refactor: Introduce granular query types with specific policies for improved caching and data freshness.

This commit is contained in:
pa
2026-03-11 14:37:43 +09:00
parent 14d73b1532
commit a75c4b89f8
23 changed files with 221 additions and 39 deletions
+2 -2
View File
@@ -363,7 +363,7 @@ export const useGalleryStore = defineStore('Gallery', () => {
const print = args.json;
const createdAt = getPrintLocalDate(print);
try {
const owner = await queryRequest.fetch('user', {
const owner = await queryRequest.fetch('user.dialog', {
userId: print.ownerId
});
console.log(
@@ -558,7 +558,7 @@ export const useGalleryStore = defineStore('Gallery', () => {
return;
}
const userArgs = await queryRequest.fetch('user', {
const userArgs = await queryRequest.fetch('user.dialog', {
userId: args.json.holderId
});
const displayName = userArgs.json?.displayName ?? '';