@liveblocks/react 3.14.0-pre5 → 3.14.0-rc1
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/README.md +1 -1
- package/dist/_private.cjs +7 -7
- package/dist/_private.d.cts +2 -2
- package/dist/_private.d.ts +2 -2
- package/dist/_private.js +1 -1
- package/dist/{chunk-RE7FR44F.cjs → chunk-K5JM2QXZ.cjs} +3 -3
- package/dist/chunk-K5JM2QXZ.cjs.map +1 -0
- package/dist/{chunk-5C2OIBKL.js → chunk-SVZO3VVV.js} +3 -3
- package/dist/chunk-SVZO3VVV.js.map +1 -0
- package/dist/{chunk-DVDWZCRK.cjs → chunk-VXELHSNB.cjs} +2 -2
- package/dist/{chunk-DVDWZCRK.cjs.map → chunk-VXELHSNB.cjs.map} +1 -1
- package/dist/{chunk-NMW364EG.js → chunk-YUX2B2QJ.js} +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{room-CEMGQ1Mj.d.cts → room-DamZM98T.d.cts} +3 -3
- package/dist/{room-CEMGQ1Mj.d.ts → room-DamZM98T.d.ts} +3 -3
- package/dist/suspense.cjs +4 -4
- package/dist/suspense.d.cts +1 -1
- package/dist/suspense.d.ts +1 -1
- package/dist/suspense.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-5C2OIBKL.js.map +0 -1
- package/dist/chunk-RE7FR44F.cjs.map +0 -1
- /package/dist/{chunk-NMW364EG.js.map → chunk-YUX2B2QJ.js.map} +0 -0
|
@@ -887,12 +887,13 @@ function createStore_forNotificationSettings(updates) {
|
|
|
887
887
|
update
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
+
var NON_BLOCKING_OPTIMISTIC_UPDATES = /* @__PURE__ */ new Set(["mark-inbox-notification-as-read"]);
|
|
890
891
|
function createStore_forOptimistic(client) {
|
|
891
892
|
const signal = new Signal([]);
|
|
892
893
|
const syncSource = client[kInternal2].createSyncSource();
|
|
893
894
|
signal.subscribe(
|
|
894
895
|
() => syncSource.setSyncStatus(
|
|
895
|
-
signal.get().
|
|
896
|
+
signal.get().some((update) => !NON_BLOCKING_OPTIMISTIC_UPDATES.has(update.type)) ? "synchronizing" : "synchronized"
|
|
896
897
|
)
|
|
897
898
|
);
|
|
898
899
|
function add(optimisticUpdate) {
|
|
@@ -3147,7 +3148,6 @@ function LiveblocksProvider(props) {
|
|
|
3147
3148
|
lostConnectionTimeout: useInitial(o.lostConnectionTimeout),
|
|
3148
3149
|
backgroundKeepAliveTimeout: useInitial(o.backgroundKeepAliveTimeout),
|
|
3149
3150
|
polyfills: useInitial(o.polyfills),
|
|
3150
|
-
largeMessageStrategy: useInitial(o.largeMessageStrategy),
|
|
3151
3151
|
unstable_streamData: useInitial(o.unstable_streamData),
|
|
3152
3152
|
preventUnsavedChanges: useInitial(o.preventUnsavedChanges),
|
|
3153
3153
|
badgeLocation: useInitial(o.badgeLocation),
|
|
@@ -5242,4 +5242,4 @@ export {
|
|
|
5242
5242
|
_useStorageRoot,
|
|
5243
5243
|
_useUpdateMyPresence
|
|
5244
5244
|
};
|
|
5245
|
-
//# sourceMappingURL=chunk-
|
|
5245
|
+
//# sourceMappingURL=chunk-SVZO3VVV.js.map
|