mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-16 08:08:18 +00:00
Fixes missing dependencies in useMemo and useCallback hooks to prevent stale closures and potential bugs. Adds null/undefined guards before navigation in music components to prevent crashes when attempting to navigate with missing IDs. Corrects query key from "company" to "genre" in genre page to ensure proper cache invalidation. Updates Jellyseerr references to Seerr throughout documentation and error messages for consistency. Improves type safety by adding error rejection handling in SeerrApi and memoizing components to optimize re-renders.
16 lines
640 B
TypeScript
16 lines
640 B
TypeScript
import React from "react";
|
|
import { View } from "react-native";
|
|
|
|
// Dev note might be a good idea to standardize skeletons across the app and have one "file" for it.
|
|
export const GridSkeleton = React.memo(() => {
|
|
return (
|
|
<View className='flex flex-col mr-2 h-auto' style={{ width: "30.5%" }}>
|
|
<View className='relative rounded-lg overflow-hidden border border-neutral-900 w-full mt-4 aspect-[10/15] bg-neutral-800' />
|
|
<View className='mt-2 flex flex-col w-full'>
|
|
<View className='h-4 bg-neutral-800 rounded mb-1' />
|
|
<View className='h-3 bg-neutral-800 rounded w-1/2' />
|
|
</View>
|
|
</View>
|
|
);
|
|
});
|