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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user