Skip to content
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

Merged
merged 9 commits into from
Jan 16, 2025

Conversation

razvantomegea
Copy link
Contributor

@razvantomegea razvantomegea commented Jan 3, 2025

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

  • No
  • Yes

Updated CHANGELOG

  • No
  • Yes

Testing

  • User testing
  • Unit tests

@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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?

Copy link
Contributor Author

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

@razvantomegea razvantomegea merged commit dd29454 into development Jan 16, 2025
1 check passed
@razvantomegea razvantomegea deleted the rt/fix/infinite-pending-toast branch January 16, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants