Fix LatestMedia sections showing skeleton evrytime refocusing the app
This commit is contained in:
1 file changed
+1
-1
@@ -30,7 +30,7 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
|
||||
queryFn: () => fetchLatestMedia(latestMediaLib[0]),
|
||||
enabled: !!user.data,
|
||||
});
|
||||
if (data.isFetching) {
|
||||
if (data.isLoading) {
|
||||
return <CardsSkeleton />;
|
||||
}
|
||||
if (data.isSuccess && data.data.length >= 1) {
|
||||
|
||||
Reference in new issue
Block a user