Use stable array/object constants II

This commit is contained in:
schroda
2026-03-20 03:29:45 +01:00
parent 5a2e5f83bc
commit 519ff43b67
17 changed files with 38 additions and 24 deletions

View File

@@ -150,7 +150,7 @@ const SourceSearchPreview = React.memo(
const { data: searchResult, isLoading, error, abortRequest } = results[0]!;
currentAbortRequest.current = abortRequest;
const mangas = searchResult?.fetchSourceManga?.mangas ?? [];
const mangas = searchResult?.fetchSourceManga?.mangas ?? STABLE_EMPTY_ARRAY;
const noMangasFound = !error && !isLoading && !mangas.length;
useEffect(() => {