meteor-persistent-minimongo2 icon indicating copy to clipboard operation
meteor-persistent-minimongo2 copied to clipboard

Go offline -> reload browser -> update minimongo record -> go online -> update is overwritten by mongo record on server

Open netmobile opened this issue 8 years ago • 2 comments

These work: Go offline -> update minimongo record -> go online -> server mongo record is updated, good! Go offline -> reload browser -> minimongo records are persisted, good! Go offline -> reload browser -> update minimongo record -> reload browser -> minimongo records are updated, good!

These do not work: Go offline -> reload browser -> update minimongo record -> go online -> update is overwritten by mongo record on server, bad! Go offline -> reload browser -> update minimongo record -> reload browser -> minimongo records are updated, good! -> go online -> update is overwritten by mongo record on server, bad!

Seems like once you reload the browser, it forgot if something local is updated, and will always be overwritten by older record from the server later on when there's connection.

netmobile avatar Jun 05 '16 05:06 netmobile

Any thought or update on this?

netmobile avatar Jun 30 '16 16:06 netmobile

@netmobile My usecase is the same as yours. How did you manage to connect and sync server collections with local collections? Can you share some code?

llvasconcellos avatar Oct 26 '16 03:10 llvasconcellos