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
Hey,
Sorry if this is a noob question - I recently started exploring Y-JS for a prototype where I need to sync JSON objects across multiple sessions.
Something like -
let t = {
"p1" : ["ABC", "DEF"],
"p2" : ["ABC", "DEF"]
}
Users can edit the content of the array ("ABC") from the front-end.
I have been able to set up the library but I can't seem to figure out how to initialize the y.share.array with initial values from the database. Can you please point me in the right direction on what would be the best way to do that?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hey,
Sorry if this is a noob question - I recently started exploring Y-JS for a prototype where I need to sync JSON objects across multiple sessions.
Something like -
Users can edit the content of the array ("ABC") from the front-end.
I have been able to set up the library but I can't seem to figure out how to initialize the y.share.array with initial values from the database. Can you please point me in the right direction on what would be the best way to do that?
Thanks a lot.
The text was updated successfully, but these errors were encountered: