Receive only changed part of state, but entire one
DenisNP last edited by
There is listen client-side method, which allows you to get specific field or several fields. And also there is onStateChange which gives you entire state. How can I get only changed part, but full one, with nested values? I don't care about type of change (add, remove etc), I want something like object difference between old state and the new one.
Hi @DenisNP, welcome. This is not available at the current state of the framework.
The only encoding option the framework provides today is a binary-diff using fossil-delta. The diff transferred to all clients consists in diff of the msgpack-encoded version of the previous state with the current one.
A custom state encoding would be necessary to allow this behaviour.