简体   繁体   中英

Does a Firestore snapshot listener return to undo a latency-compensated return if a write fails?

If a write is made to Firestore and the UI relies on the latency-compensated return (from a snapshot listener) to move the user forward and that write ends up failing, does that failure invoke the snapshot listener to return immediately with data that undoes the now-incorrect latency-compensated return from the failed write?

If the write of a document fails, then a listener on that document will see the document removed. The timestamp won't matter at all since the document is no longer present.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM