diff --git a/src/libs/queries/extApi/tokens.ts b/src/libs/queries/extApi/tokens.ts index 0f2130bf6..fc8ebc740 100644 --- a/src/libs/queries/extApi/tokens.ts +++ b/src/libs/queries/extApi/tokens.ts @@ -13,7 +13,7 @@ export const useTokensQuery = () => { return tokens; }, { - initialData: lsService.getItem('tokenListCache')?.tokens, + placeholderData: lsService.getItem('tokenListCache')?.tokens, staleTime: ONE_DAY_IN_MS, } ); diff --git a/src/libs/queries/sdk/pairs.ts b/src/libs/queries/sdk/pairs.ts index e6c62e9ac..343628911 100644 --- a/src/libs/queries/sdk/pairs.ts +++ b/src/libs/queries/sdk/pairs.ts @@ -52,7 +52,7 @@ export const useGetTradePairsData = () => { return pairsWithInverse; }, - initialData: getCachedData(), + placeholderData: getCachedData(), enabled: !!tokens.length && isInitialized, retry: 1, staleTime: ONE_DAY_IN_MS,