Use same endpoint for search in SearchAll and SourceMangas (#368)

SearchAll used a different search endpoint and thus, the already requested pages for the search weren't reused and instead had to be requested again since the swr cache key was different
This commit is contained in:
schroda
2023-06-17 15:45:06 +02:00
committed by GitHub
parent 97c77027f2
commit 64eb420ba6

View File

@@ -106,7 +106,7 @@ const SourceSearchPreview = React.memo(
isLoading,
error,
abortRequest,
} = requestManager.useSourceSearch(id, searchString ?? '', 1, { skipRequest });
} = requestManager.useSourceQuickSearch(id, searchString ?? '', [], 1, { skipRequest });
const mangas = !isLoading ? searchResult?.[0]?.mangaList ?? [] : [];
const noMangasFound = !isLoading && !mangas.length;