volna
volna

Reputation: 2610

Update firestore only once with the offline cached state after user becomes online

While being in offline mode user performs 1000+ write actions to the unique collection bound to that particular user, where only he/she has access to. After a while it reconnects to the network...

Is there a way rather then passing all queued actions, update the firestore with current version of the state

Upvotes: 0

Views: 22

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 598728

There's no support for folding the pending writes, as each state change might individually be accepted/rejected by the server-side security rules, and might individually trigger server-side behavior (like Cloud functions).

Upvotes: 1

Related Questions