Fix allTags cache reset (#3444)

This commit is contained in:
DingDongSoLong4 2023-02-17 04:51:03 +02:00 committed by GitHub
parent 4e34de4c1e
commit f92ba7ba53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 17 deletions

View File

@ -6,12 +6,6 @@ query MarkerStrings($q: String, $sort: String) {
}
}
query AllTags {
allTags {
...TagData
}
}
query AllPerformersForFilter {
allPerformers {
...SlimPerformerData

View File

@ -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({