@emeryld/rrroutes-client 2.7.9 → 2.7.10
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.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1603,6 +1603,10 @@ function useSocketConnection(args) {
|
|
|
1603
1603
|
() => rooms == null ? [] : Array.isArray(rooms) ? rooms : [rooms],
|
|
1604
1604
|
[rooms]
|
|
1605
1605
|
);
|
|
1606
|
+
const normalizedRoomsKey = React2.useMemo(
|
|
1607
|
+
() => normalizedRooms.join(""),
|
|
1608
|
+
[normalizedRooms]
|
|
1609
|
+
);
|
|
1606
1610
|
const reportAsyncError = React2.useCallback(
|
|
1607
1611
|
(phase, error) => {
|
|
1608
1612
|
if (typeof console !== "undefined" && typeof console.warn === "function") {
|
|
@@ -1628,10 +1632,12 @@ function useSocketConnection(args) {
|
|
|
1628
1632
|
client,
|
|
1629
1633
|
event,
|
|
1630
1634
|
onMessage,
|
|
1635
|
+
onCleanup,
|
|
1631
1636
|
autoJoin,
|
|
1632
1637
|
autoLeave,
|
|
1633
1638
|
reportAsyncError,
|
|
1634
|
-
|
|
1639
|
+
normalizedRooms,
|
|
1640
|
+
normalizedRoomsKey
|
|
1635
1641
|
]);
|
|
1636
1642
|
}
|
|
1637
1643
|
|