File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
packages/thirdweb/src/react/web/ui/Bridge/swap-widget Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Remove retries when fetching list of tokens fails in SwapWidget to reduce time loading skeletons are shown in the UI
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export function useTokens(options: {
1515 return useQuery < Token [ ] > ( {
1616 queryKey : [ "tokens" , options ] ,
1717 enabled : ! ! options . chainId ,
18+ retry : false ,
1819 queryFn : ( ) => {
1920 if ( ! options . chainId ) {
2021 throw new Error ( "Chain ID is required" ) ;
@@ -115,6 +116,7 @@ export function useTokenBalances(options: {
115116 return json . result ;
116117 } ,
117118 refetchOnMount : false ,
119+ retry : false ,
118120 refetchOnWindowFocus : false ,
119121 } ) ;
120122}
You can’t perform that action at this time.
0 commit comments