@instantdb/core 0.22.86-experimental.split-store.20247643606.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.
- package/__tests__/src/store.test.ts +18 -0
- package/dist/commonjs/Reactor.js +2 -2
- package/dist/commonjs/Reactor.js.map +1 -1
- package/dist/esm/Reactor.js +2 -2
- package/dist/esm/Reactor.js.map +1 -1
- package/dist/standalone/index.js +3 -3
- package/dist/standalone/index.umd.cjs +2 -2
- package/package.json +2 -2
- package/src/Reactor.js +2 -2
package/dist/esm/Reactor.js
CHANGED
|
@@ -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));
|