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.