lisk-mobile icon indicating copy to clipboard operation
lisk-mobile copied to clipboard

Fix websocket connections roundtrip on new/delete transactions events

Open clemente-xyz opened this issue 2 years ago • 0 comments

Expected behavior

The app should establish only 1 connection per API client for listening to new/delete transaction events.

Actual behavior

The app makes more than 100 subscriptions to the events each time the server notifies that a transaction is created or deleted (new.transactions and delete.transactions events).

The events subscriptions are on src/modules/Accounts/api/useAccountTransactionsQuery.js.

Steps to reproduce

  1. Access to an account.
  2. Click on Send token button on the Home tab.
  3. Fill the send token form.
  4. Submit the transaction and go back to the home tab.
  5. Wait until the event is received.

Which version(s) does this affect? (Environment, OS, etc...)

Development, iOS and Android.

clemente-xyz avatar Oct 13 '22 12:10 clemente-xyz