@inditextech/weave-react 3.4.0-SNAPSHOT.38.1 → 3.4.0-SNAPSHOT.85.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/dist/react.js +2 -6
- package/package.json +3 -3
package/dist/react.js
CHANGED
|
@@ -342,7 +342,6 @@ const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = []
|
|
|
342
342
|
setRoomLoaded(false);
|
|
343
343
|
initWeave();
|
|
344
344
|
return () => {
|
|
345
|
-
console.log("unmounting weave provider, let's clean up");
|
|
346
345
|
weaveInstanceRef.current?.removeEventListener("onInstanceStatus", onInstanceStatusHandler);
|
|
347
346
|
weaveInstanceRef.current?.removeEventListener("onStoreConnectionStatusChange", onStoreConnectionStatusChangeHandler);
|
|
348
347
|
weaveInstanceRef.current?.removeEventListener("onRoomLoaded", onRoomLoadedHandler);
|
|
@@ -353,7 +352,6 @@ const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = []
|
|
|
353
352
|
weaveInstanceRef.current?.removeEventListener("onAsyncElementsLoaded", onAsyncElementsLoadedHandler);
|
|
354
353
|
setStatus(WEAVE_INSTANCE_STATUS.IDLE);
|
|
355
354
|
setRoomLoaded(false);
|
|
356
|
-
console.log("Destroying weave instance");
|
|
357
355
|
weaveInstanceRef.current?.destroy();
|
|
358
356
|
weaveInstanceRef.current = null;
|
|
359
357
|
};
|
|
@@ -384,16 +382,14 @@ const useWeaveEvents = () => {
|
|
|
384
382
|
[]
|
|
385
383
|
);
|
|
386
384
|
const onRoomSwitchingStartHandler = React.useCallback(
|
|
387
|
-
(
|
|
388
|
-
console.log("Room switching started to room:", room);
|
|
385
|
+
() => {
|
|
389
386
|
setRoomSwitching(true);
|
|
390
387
|
},
|
|
391
388
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
392
389
|
[]
|
|
393
390
|
);
|
|
394
391
|
const onRoomSwitchingEndHandler = React.useCallback(
|
|
395
|
-
(
|
|
396
|
-
console.log("Room switching ended to room:", room);
|
|
392
|
+
() => {
|
|
397
393
|
setRoomSwitching(false);
|
|
398
394
|
},
|
|
399
395
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-react",
|
|
3
|
-
"version": "3.4.0-SNAPSHOT.
|
|
3
|
+
"version": "3.4.0-SNAPSHOT.85.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@inditextech/weave-sdk": "3.4.0-SNAPSHOT.
|
|
51
|
-
"@inditextech/weave-types": "3.4.0-SNAPSHOT.
|
|
50
|
+
"@inditextech/weave-sdk": "3.4.0-SNAPSHOT.85.1",
|
|
51
|
+
"@inditextech/weave-types": "3.4.0-SNAPSHOT.85.1",
|
|
52
52
|
"@syncedstore/core": "0.6.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|