From 0495a932deda341a6035147a93d2ba1043cc65b8 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 17 Jun 2023 15:45:18 +0200 Subject: [PATCH] Use the "disableCache" flag for the "filters" source content type request (#370) --- src/screens/SourceMangas.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/screens/SourceMangas.tsx b/src/screens/SourceMangas.tsx index 59c207be..80eed17b 100644 --- a/src/screens/SourceMangas.tsx +++ b/src/screens/SourceMangas.tsx @@ -139,6 +139,7 @@ const useSourceManga = ( return filter; }), 1, + { disableCache: true }, ); break; default: @@ -181,14 +182,11 @@ export default function SourceMangas() { setSize: setPages, mutate: refreshData, abortRequest, - isValidating, } = useSourceManga(sourceId, contentType, searchTerm, filtersToApply); const { data: filters = [], mutate: mutateFilters } = requestManager.useGetSourceFilters(sourceId); const { data: source } = requestManager.useGetSource(sourceId); const [triggerDataRefresh, setTriggerDataRefresh] = useState(false); - const isValidatingMangasForFilter = !isLoading && isValidating && contentType === SourceContentType.FILTER; - const message = !isLoading ? (t(SOURCE_CONTENT_TYPE_TO_ERROR_MSG_KEY[contentType]) as string) : undefined; const isLocalSource = sourceId === '0'; const messageExtra = isLocalSource ? ( @@ -316,13 +314,13 @@ export default function SourceMangas() { {contentType === SourceContentType.FILTER && (