My current scenario:
Assume userA (client) is editing a doc, userB (from web) then open docA and edit and successfully save it, ie. the doc is updated. (I do not place any locks and the option not to build conflict doc is checked)
userA then complete editing and before save, I set codes to check if the doc had been modified by someone else. I use the method of getdocumentbyid to retrieve corresponding backend doc in order to compare the 2 doc. However the doc retrieved doesn’t reflect any changes by userB, it is just the original doc. (I see the values using LS debugger) but I am sure the document has been updated by userB by viewing the doc on web.
Anything I am missing?