From f92ba7ba532d94115e2fc6cf09735f68f2c86332 Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Fri, 17 Feb 2023 04:51:03 +0200 Subject: [PATCH] Fix allTags cache reset (#3444) --- graphql/documents/queries/misc.graphql | 6 ------ ui/v2.5/src/core/StashService.ts | 12 +----------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/graphql/documents/queries/misc.graphql b/graphql/documents/queries/misc.graphql index decb1c652..19d0d2b8b 100644 --- a/graphql/documents/queries/misc.graphql +++ b/graphql/documents/queries/misc.graphql @@ -6,12 +6,6 @@ query MarkerStrings($q: String, $sort: String) { } } -query AllTags { - allTags { - ...TagData - } -} - query AllPerformersForFilter { allPerformers { ...SlimPerformerData diff --git a/ui/v2.5/src/core/StashService.ts b/ui/v2.5/src/core/StashService.ts index 376a52b14..5578c8c33 100644 --- a/ui/v2.5/src/core/StashService.ts +++ b/ui/v2.5/src/core/StashService.ts @@ -313,7 +313,6 @@ export const usePlugins = () => GQL.usePluginsQuery(); export const usePluginTasks = () => GQL.usePluginTasksQuery(); export const useMarkerStrings = () => GQL.useMarkerStringsQuery(); -export const useAllTags = () => GQL.useAllTagsQuery(); export const useAllTagsForFilter = () => GQL.useAllTagsForFilterQuery(); export const useAllPerformersForFilter = () => GQL.useAllPerformersForFilterQuery(); @@ -408,7 +407,6 @@ const sceneMutationImpactedQueries = [ GQL.FindMoviesDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, ]; export const useSceneUpdate = () => @@ -562,7 +560,6 @@ const imageMutationImpactedQueries = [ GQL.FindStudiosDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, GQL.FindGalleryDocument, GQL.FindGalleriesDocument, ]; @@ -696,7 +693,6 @@ const galleryMutationImpactedQueries = [ GQL.FindStudiosDocument, GQL.FindTagDocument, GQL.FindTagsDocument, - GQL.AllTagsDocument, GQL.FindGalleryDocument, GQL.FindGalleriesDocument, ]; @@ -843,7 +839,6 @@ export const tagMutationImpactedQueries = [ GQL.FindSceneDocument, GQL.FindScenesDocument, GQL.FindSceneMarkersDocument, - GQL.AllTagsDocument, GQL.AllTagsForFilterDocument, GQL.FindTagsDocument, ]; @@ -851,15 +846,10 @@ export const tagMutationImpactedQueries = [ export const useTagCreate = () => GQL.useTagCreateMutation({ refetchQueries: getQueryNames([ - GQL.AllTagsDocument, GQL.AllTagsForFilterDocument, GQL.FindTagsDocument, ]), - update: deleteCache([ - GQL.FindTagsDocument, - GQL.AllTagsDocument, - GQL.AllTagsForFilterDocument, - ]), + update: deleteCache([GQL.AllTagsForFilterDocument, GQL.FindTagsDocument]), }); export const useTagUpdate = () => GQL.useTagUpdateMutation({