Skip to content

Syncing a nested object #1584

Answered by nvie
oravecz asked this question in Help
Apr 22, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

[…] The issue I am having is getting Liveblocks to sync these changes in a performant manner.
[…] my approach looks something like this:
Model (Client A) --apply--> Storage (Client A) <--sync-- Liveblocks --sync--> Storage (Client B) --apply--> Model (Client B)

The "apply" step for Client A above, is taking a change to the local model and applying it against the room's storage in a very granular fashion.

If you've solved this part, I feel like you've done most of the hard work already.

All I am missing from Liveblocks in this scenario is a fast update of the Storage on each collaborator after the room.batch completes. Currently it takes several seconds for my Storage's to sync, if they…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@oravecz
Comment options

Answer selected by oravecz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants