movex icon indicating copy to clipboard operation
movex copied to clipboard

[libs/movex] Bug - On slower networks sometimes, when there is an ack mismatch the `resyncLocalState()` throws an error

Open GabrielCTroia opened this issue 1 year ago • 0 comments

What

When there is an "Ack Mismatch", but what happens is that if there is an another action being dispatched in between syncing the new state it seems the following error gets thrown:

Screenshot 2024-01-05 at 7 36 13 PM

Where

File: libs/movex/src/lib/MovexResource.ts:322 calls resyncLocalState() Screenshot 2024-01-05 at 7 37 34 PM

Expected Behavior

  • [ ] No error gets thrown
  • [ ] The state eventually syncs up with no issue irrelevant of the order of the actions being dispatched and of the missmatched ack checksums

Notes

This is how I interpret the error at a glimpse but it might be something different. Need to investigate more.

GabrielCTroia avatar Jan 06 '24 01:01 GabrielCTroia