You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first time I create System, create wallet managers and connect them, I get all the relevant events for wallets and walletManager.state gets to CONNECTED state. I imagine that's how I know that syncing has finished.
In our app we don't want to sync wallet managers all the time in the background, I noticed that WalletManagerBlockUpdatedEvent event gets called a lot so I assume that wallet managers get updated in the background still. That is why when user leaves the screen we call system.pause() and when he returns we call system.resume(). The problem is that after these 2 calls walletManager.state is SYNCING all the time. No WalletManagerSync*Event are even called, just WalletManagerChangedEvent and then WalletManagerBlockUpdatedEvent events.
It seems like this is a bug in the library, but it might be just my lack of understanding of the library. I am working with master version 513c0ee.
Reproductions steps:
Create system, create and connect wallet managers. Wallet managers go to CONNECTED state. Syncing is finished.
Navigate offscreen and call system.pause().
Navigate to WalletKit screen and call system.resume.
Wallet managers go to SYNCING state and stay in this state.
The text was updated successfully, but these errors were encountered:
I found a workaround for this bug. If you call system.resume() 2x in a row or actually just connect wallet managers 2x in a row then wallet managers go correctly to CONNECTED state.
The first time I create
System
, create wallet managers and connect them, I get all the relevant events for wallets andwalletManager.state
gets toCONNECTED
state. I imagine that's how I know that syncing has finished.In our app we don't want to sync wallet managers all the time in the background, I noticed that
WalletManagerBlockUpdatedEvent
event gets called a lot so I assume that wallet managers get updated in the background still. That is why when user leaves the screen we callsystem.pause()
and when he returns we callsystem.resume()
. The problem is that after these 2 callswalletManager.state
isSYNCING
all the time. NoWalletManagerSync*Event
are even called, justWalletManagerChangedEvent
and thenWalletManagerBlockUpdatedEvent
events.It seems like this is a bug in the library, but it might be just my lack of understanding of the library. I am working with
master
version 513c0ee.Reproductions steps:
CONNECTED
state. Syncing is finished.system.pause()
.system.resume
.SYNCING
state and stay in this state.The text was updated successfully, but these errors were encountered: