Skip to content

Commit

Permalink
Merge pull request #994 from bancorprotocol/fixImportTokens
Browse files Browse the repository at this point in the history
revert back to placeholder data for tokens and pairs query
  • Loading branch information
pingustar authored Jan 18, 2024
2 parents 6a6272d + 4d27651 commit 1615396
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified e2e/screenshots/[Create Overlapping Strategy] My Strategy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 1615396

Please sign in to comment.