@liveblocks/react 1.0.7 → 1.0.8
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 +11 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -430,8 +430,17 @@ function createRoomContext(client) {
|
|
|
430
430
|
const room = useRoom();
|
|
431
431
|
return React2.useMemo(
|
|
432
432
|
() => {
|
|
433
|
-
return (...args) =>
|
|
434
|
-
|
|
433
|
+
return (...args) => (
|
|
434
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
435
|
+
room.batch(
|
|
436
|
+
() => (
|
|
437
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
438
|
+
callback(
|
|
439
|
+
makeMutationContext(room),
|
|
440
|
+
...args
|
|
441
|
+
)
|
|
442
|
+
)
|
|
443
|
+
)
|
|
435
444
|
);
|
|
436
445
|
},
|
|
437
446
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A set of React hooks and providers to use Liveblocks declaratively. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"test:watch": "jest --silent --verbose --color=always --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@liveblocks/client": "1.0.
|
|
24
|
-
"@liveblocks/core": "1.0.
|
|
23
|
+
"@liveblocks/client": "1.0.8",
|
|
24
|
+
"@liveblocks/core": "1.0.8",
|
|
25
25
|
"use-sync-external-store": "^1.2.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|