mirror of https://github.com/stashapp/stash.git
Fix allTags cache reset (#3444)
This commit is contained in:
parent
4e34de4c1e
commit
f92ba7ba53
|
@ -6,12 +6,6 @@ query MarkerStrings($q: String, $sort: String) {
|
|||
}
|
||||
}
|
||||
|
||||
query AllTags {
|
||||
allTags {
|
||||
...TagData
|
||||
}
|
||||
}
|
||||
|
||||
query AllPerformersForFilter {
|
||||
allPerformers {
|
||||
...SlimPerformerData
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue