@firebase/firestore 4.6.2-canary.2ce95696f → 4.6.2-canary.9cbb1845e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -71,7 +71,7 @@ User.MOCK_USER = new User("mock-user");
71
71
  * See the License for the specific language governing permissions and
72
72
  * limitations under the License.
73
73
  */
74
- let b = "10.12.0-canary.2ce95696f";
74
+ let b = "10.12.0-canary.9cbb1845e";
75
75
 
76
76
  /**
77
77
  * @license
@@ -16465,14 +16465,12 @@ async function __PRIVATE_syncEngineEmitNewSnapsAndNotifyLocalStore(e, t, n) {
16465
16465
  const r = __PRIVATE_debugCast(e), i = [], s = [], o = [];
16466
16466
  r.ba.isEmpty() || (r.ba.forEach(((e, _) => {
16467
16467
  o.push(r.Ba(_, t, n).then((e => {
16468
+ // Update views if there are actual changes.
16469
+ if (
16468
16470
  // If there are changes, or we are handling a global snapshot, notify
16469
16471
  // secondary clients to update query state.
16470
- if ((e || n) && r.isPrimaryClient) {
16471
- const t = e && !e.fromCache;
16472
- r.sharedClientState.updateQueryState(_.targetId, t ? "current" : "not-current");
16473
- }
16474
- // Update views if there are actual changes.
16475
- if (e) {
16472
+ (e || n) && r.isPrimaryClient && r.sharedClientState.updateQueryState(_.targetId, (null == e ? void 0 : e.fromCache) ? "not-current" : "current"),
16473
+ e) {
16476
16474
  i.push(e);
16477
16475
  const t = __PRIVATE_LocalViewChanges.Ki(_.targetId, e);
16478
16476
  s.push(t);
@@ -21994,9 +21992,9 @@ let ve = null;
21994
21992
  return r = Object.assign({
21995
21993
  useFetchStreams: t
21996
21994
  }, r), s._setSettings(r), s;
21997
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.6.2-canary.2ce95696f", e),
21995
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(S, "4.6.2-canary.9cbb1845e", e),
21998
21996
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21999
- app.registerVersion(S, "4.6.2-canary.2ce95696f", "cjs2017");
21997
+ app.registerVersion(S, "4.6.2-canary.9cbb1845e", "cjs2017");
22000
21998
  }();
22001
21999
 
22002
22000
  exports.AbstractUserDataWriter = AbstractUserDataWriter;