-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ability to close transaction toasts on timeout #1352
Conversation
src/UI/TransactionsToastList/components/TransactionToast/hooks/useTransactionToast.ts
Outdated
Show resolved
Hide resolved
src/hooks/transactions/useTransactionsTracker/useCheckHangingTransactionsFallback.ts
Outdated
Show resolved
Hide resolved
src/hooks/transactions/useTransactionsTracker/useCheckHangingTransactionsFallback.ts
Outdated
Show resolved
Hide resolved
@@ -10,23 +10,24 @@ import { | |||
} from 'types'; | |||
import { refreshAccount } from 'utils/account/refreshAccount'; | |||
|
|||
export function useUpdateBatch() { | |||
// TODO: This function seems duplicate to the manageTransaction from checkBatch.ts file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it still used? why not combine them into one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be changed in the new sdk-dapp-core. why work on it twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is used for batch transactions
Issue
Transaction toasts remain in infinite pending sometimes
Root cause
Websocket event is not triggered or API fails
Fix
Add fallback mechanism in useTransactionTracker for when WS fails
Additional changes
Improved websocket connection events handling
Contains breaking changes
Updated CHANGELOG
Testing