@liveblocks/react 1.11.1 → 1.12.0-test1
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.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _core = require('@liveblocks/core');
|
|
|
5
5
|
|
|
6
6
|
// src/version.ts
|
|
7
7
|
var PKG_NAME = "@liveblocks/react";
|
|
8
|
-
var PKG_VERSION = "1.
|
|
8
|
+
var PKG_VERSION = "1.12.0-test1";
|
|
9
9
|
var PKG_FORMAT = "cjs";
|
|
10
10
|
|
|
11
11
|
// src/ClientSideSuspense.tsx
|
|
@@ -1304,7 +1304,9 @@ function createRoomContext(client, options) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
const inboxNotification = Object.values(
|
|
1306
1306
|
state.inboxNotifications
|
|
1307
|
-
).find(
|
|
1307
|
+
).find(
|
|
1308
|
+
(notification) => notification.kind === "thread" && notification.threadId === threadId
|
|
1309
|
+
);
|
|
1308
1310
|
const updatedInboxNotifications = inboxNotification !== void 0 ? {
|
|
1309
1311
|
...state.inboxNotifications,
|
|
1310
1312
|
[inboxNotification.id]: {
|
|
@@ -1520,7 +1522,7 @@ function createRoomContext(client, options) {
|
|
|
1520
1522
|
const selector = React2.useCallback(
|
|
1521
1523
|
(state) => {
|
|
1522
1524
|
const inboxNotification = selectedInboxNotifications(state).find(
|
|
1523
|
-
(inboxNotification2) => inboxNotification2.threadId === threadId
|
|
1525
|
+
(inboxNotification2) => inboxNotification2.kind === "thread" && inboxNotification2.threadId === threadId
|
|
1524
1526
|
);
|
|
1525
1527
|
const thread = state.threads[threadId];
|
|
1526
1528
|
if (inboxNotification === void 0 || thread === void 0) {
|
|
@@ -1548,7 +1550,9 @@ function createRoomContext(client, options) {
|
|
|
1548
1550
|
(threadId) => {
|
|
1549
1551
|
const inboxNotification = Object.values(
|
|
1550
1552
|
store.get().inboxNotifications
|
|
1551
|
-
).find(
|
|
1553
|
+
).find(
|
|
1554
|
+
(inboxNotification2) => inboxNotification2.kind === "thread" && inboxNotification2.threadId === threadId
|
|
1555
|
+
);
|
|
1552
1556
|
if (!inboxNotification)
|
|
1553
1557
|
return;
|
|
1554
1558
|
const optimisticUpdateId = _nanoid.nanoid.call(void 0, );
|