@liveblocks/react 1.0.2-test5 → 1.0.2
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 +10 -14
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -123,23 +123,19 @@ function createRoomContext(client) {
|
|
|
123
123
|
() => client.enter(roomId, {
|
|
124
124
|
initialPresence: frozen.initialPresence,
|
|
125
125
|
initialStorage: frozen.initialStorage,
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
shouldInitiallyConnect: frozen.shouldInitiallyConnect,
|
|
127
|
+
unstable_batchedUpdates: frozen.unstable_batchedUpdates
|
|
128
128
|
})
|
|
129
129
|
);
|
|
130
|
-
const isFirstRender = React2.useRef(true);
|
|
131
130
|
React2.useEffect(() => {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
isFirstRender.current = false;
|
|
131
|
+
setRoom(
|
|
132
|
+
client.enter(roomId, {
|
|
133
|
+
initialPresence: frozen.initialPresence,
|
|
134
|
+
initialStorage: frozen.initialStorage,
|
|
135
|
+
shouldInitiallyConnect: frozen.shouldInitiallyConnect,
|
|
136
|
+
unstable_batchedUpdates: frozen.unstable_batchedUpdates
|
|
137
|
+
})
|
|
138
|
+
);
|
|
143
139
|
return () => {
|
|
144
140
|
client.leave(roomId);
|
|
145
141
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react",
|
|
3
|
-
"version": "1.0.2
|
|
3
|
+
"version": "1.0.2",
|
|
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.2
|
|
24
|
-
"@liveblocks/core": "1.0.2
|
|
23
|
+
"@liveblocks/client": "1.0.2",
|
|
24
|
+
"@liveblocks/core": "1.0.2",
|
|
25
25
|
"use-sync-external-store": "^1.2.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|