-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix userAssets query enabled config (#6243)
* Remove unused useUserAssetsByChain hook * Only trigger retry logic if there are chainIdsWithErrorsInResponse * Remove unnecessary export of userAssetsByChainQueryFunction * Update default for empty cache for userAssetsByChainQueryFunction * Results from retry can be undefined, so check before using Object.values on the results * Fix endpoint we were hitting on retry logic which was causing NO AUTH error * Fix userAssets query to only be enabled when both address and currency are available * Remove isSwapsOpen check when keeping user assets store in sync * Current search cache can sometimes be an empty object instead of a Map and fails when trying to index get function * Ignore persistence serialization and deserialization of searchCache in userAssets store * Only update the user assets store when swaps is not open or if it is open but missing user assets data * Update enabled logic for userAssetsQuery from userAssetsSync * Use partialize for userAssets store * Re-add address check in user assets query
- Loading branch information
Showing
5 changed files
with
56 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export { useUserAssets } from './userAssets'; | ||
export type { UserAssetsArgs } from './userAssets'; | ||
export { useUserAssetsByChain } from './userAssetsByChain'; | ||
export type { UserAssetsByChainArgs } from './userAssetsByChain'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters