Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] upgrade to react-query v5 #14346

Merged
merged 24 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
williamrobertson13 committed Oct 23, 2023
commit 7f0f3e7d9f7e6955b19ae383aa31e3462735b4c4
4 changes: 2 additions & 2 deletions apps/wallet/src/ui/app/hooks/useGetNFTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function useGetNFTs(address?: string | null) {
isFetchingNextPage,
hasNextPage,
fetchNextPage,
isInitialLoading,
isLoading,
} = useGetOwnedObjects(
address,
{
Expand Down Expand Up @@ -58,7 +58,7 @@ export function useGetNFTs(address?: string | null) {

return {
data: assets,
isInitialLoading,
isLoading,
hasNextPage,
isFetchingNextPage,
fetchNextPage,
Expand Down
4 changes: 2 additions & 2 deletions apps/wallet/src/ui/app/pages/home/hidden-assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { useHiddenAssets } from './HiddenAssetsProvider';
function HiddenNftsPage() {
const { hiddenAssetIds, showAsset } = useHiddenAssets();

const { data, isInitialLoading, isPending, isError, error } = useMultiGetObjects(
const { data, isLoading, isPending, isError, error } = useMultiGetObjects(
hiddenAssetIds,
{
showDisplay: true,
Expand Down Expand Up @@ -53,7 +53,7 @@ function HiddenNftsPage() {
});
}, [hiddenAssetIds, data]);

if (isInitialLoading) {
if (isLoading) {
return (
<div className="mt-1 flex w-full justify-center">
<LoadingSpinner />
Expand Down
4 changes: 2 additions & 2 deletions apps/wallet/src/ui/app/pages/home/nfts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function NftsPage() {
const {
data: ownedAssets,
hasNextPage,
isInitialLoading,
isLoading,
isFetchingNextPage,
error,
isPending,
Expand All @@ -50,7 +50,7 @@ function NftsPage() {
}, [ownedAssets, filterType]);
const { hiddenAssetIds } = useHiddenAssets();

if (isInitialLoading) {
if (isLoading) {
return (
<div className="mt-1 flex w-full justify-center">
<LoadingSpinner />
Expand Down