Closed evdokimovs closed 3 years ago
Migrate events handling to reactivity in 'medea-jason' crate (#164, #27, #47)
- add Component and State for Sender, Receiver, Peer and PeerRepository
- rewrite EventHandler implementation to update Component's States instead of real objects
Additionally:
- upgrade Firefox to 84.0.2 version for E2E tests
- fix 'opt-level' being ignored when compiling 'medea-jason' crate in Cargo manifest
- globally set 'codegen-units = 1' in Cargo manifest
Part of #27, #47
Synopsis
We need to handle server
Event
inmedea-jason
reactively and based onState
. Thus, we will be able to synchronize client with server on reconnect by merging server's state with a client's one.Solution
Create states for the all objects which are can be updated by the server's
Event
. Rewrite allEvent
handlers to update reactiveState
instead of real objects.Checklist
Draft:
prefixk::
labels appliedDraft:
prefix is removed