@instantdb/core 0.22.86-experimental.split-store.20247691802.1 → 0.22.86-experimental.split-store.20249342206.1

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.
@@ -754,7 +754,7 @@ export default class Reactor {
754
754
  }
755
755
  }
756
756
  if (newAttrs.length) {
757
- const existingAttrs = Object.values(this.ensureAttrs());
757
+ const existingAttrs = Object.values(this.ensureAttrs().attrs);
758
758
  this._setAttrs([...existingAttrs, ...newAttrs]);
759
759
  this._setAttrs(newAttrs);
760
760
  }
@@ -1562,7 +1562,7 @@ export default class Reactor {
1562
1562
  if (!this.attrs)
1563
1563
  return;
1564
1564
  const oas = this.optimisticAttrs();
1565
- this.attrsCbs.forEach((cb) => cb(oas));
1565
+ this.attrsCbs.forEach((cb) => cb(oas.attrs));
1566
1566
  }
1567
1567
  notifyConnectionStatusSubs(status) {
1568
1568
  this.connectionStatusCbs.forEach((cb) => cb(status));