@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.mjs CHANGED
@@ -1572,6 +1572,10 @@ function useSocketConnection(args) {
1572
1572
  () => rooms == null ? [] : Array.isArray(rooms) ? rooms : [rooms],
1573
1573
  [rooms]
1574
1574
  );
1575
+ const normalizedRoomsKey = React2.useMemo(
1576
+ () => normalizedRooms.join(""),
1577
+ [normalizedRooms]
1578
+ );
1575
1579
  const reportAsyncError = React2.useCallback(
1576
1580
  (phase, error) => {
1577
1581
  if (typeof console !== "undefined" && typeof console.warn === "function") {
@@ -1597,10 +1601,12 @@ function useSocketConnection(args) {
1597
1601
  client,
1598
1602
  event,
1599
1603
  onMessage,
1604
+ onCleanup,
1600
1605
  autoJoin,
1601
1606
  autoLeave,
1602
1607
  reportAsyncError,
1603
- ...normalizedRooms
1608
+ normalizedRooms,
1609
+ normalizedRoomsKey
1604
1610
  ]);
1605
1611
  }
1606
1612