From 47bf854188fa33e703081a3bcfbd7f9ebe4c5c71 Mon Sep 17 00:00:00 2001 From: Wu-Hui Date: Thu, 9 Mar 2023 16:14:55 -0500 Subject: [PATCH] Add a TODO --- packages/firestore/src/local/local_store_impl.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/firestore/src/local/local_store_impl.ts b/packages/firestore/src/local/local_store_impl.ts index ba91a7f22ca..cb960af25f9 100644 --- a/packages/firestore/src/local/local_store_impl.ts +++ b/packages/firestore/src/local/local_store_impl.ts @@ -872,6 +872,10 @@ export async function localStoreNotifyLocalViewChanges( ); localStoreImpl.targetDataByTarget = localStoreImpl.targetDataByTarget.insert(targetId, updatedTargetData); + + // TODO(b/272564316): Apply the optimization done on other platforms. + // This is a problem for web because saving the updated targetData from + // non-primary client conflicts with what primary client saved. } } }