Skip to content

Commit

Permalink
revert back to placeholder data
Browse files Browse the repository at this point in the history
  • Loading branch information
pingustar committed Jan 17, 2024
1 parent 997fcf4 commit b910c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/queries/extApi/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useTokensQuery = () => {
return tokens;
},
{
initialData: lsService.getItem('tokenListCache')?.tokens,
placeholderData: lsService.getItem('tokenListCache')?.tokens,
staleTime: ONE_DAY_IN_MS,
}
);
Expand Down
2 changes: 1 addition & 1 deletion src/libs/queries/sdk/pairs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useGetTradePairsData = () => {

return pairsWithInverse;
},
initialData: getCachedData(),
placeholderData: getCachedData(),
enabled: !!tokens.length && isInitialized,
retry: 1,
staleTime: ONE_DAY_IN_MS,
Expand Down

0 comments on commit b910c7f

Please sign in to comment.