Migrate react-query to v5

This commit is contained in:
Prayag Prajapati committed 2023-10-26 21:58:30 +05:30
1 parent f5c6e97355
commit d44848516a
21 files changed
+66 -86

No files matched your search

+5 -5
View File
@@ -177,7 +177,7 @@ const Home = () => {
}}
>
<ErrorBoundary fallback={<CarouselSlideError />}>
{latestMedia.isLoading ? (
{latestMedia.isPending ? (
<CarouselSkeleton />
) : (
<Carousel
@@ -224,7 +224,7 @@ const Home = () => {
</div>
}
>
{libraries.isLoading ? (
{libraries.isPending ? (
<CardsSkeleton />
) : (
<CardScroller
@@ -279,7 +279,7 @@ const Home = () => {
</div>
}
>
{upNextItems.isLoading ? (
{upNextItems.isPending ? (
<CardsSkeleton />
) : upNextItems.isSuccess &&
upNextItems.data.Items.length == 0 ? (
@@ -373,7 +373,7 @@ const Home = () => {
</div>
}
>
{resumeItemsVideo.isLoading ? (
{resumeItemsVideo.isPending ? (
<CardsSkeleton />
) : resumeItemsVideo.isSuccess &&
resumeItemsVideo.data.Items.length == 0 ? (
@@ -468,7 +468,7 @@ const Home = () => {
</div>
}
>
{resumeItemsAudio.isLoading ? (
{resumeItemsAudio.isPending ? (
<CardsSkeleton />
) : resumeItemsAudio.isSuccess &&
resumeItemsAudio.data.Items.length == 0 ? (