Use stable array/object constants II
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user