@react-remote-state/client 1.1.2 → 1.1.4

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 CHANGED
@@ -5585,7 +5585,9 @@ function useRemoteReducer(uri, reducer, gameId) {
5585
5585
  };
5586
5586
  (0, import_react.useEffect)(() => {
5587
5587
  if (!meta.client) {
5588
- meta.client = socket_default.connect(uri, { transports: ["websocket"] });
5588
+ setMeta(__spreadProps(__spreadValues({}, meta), {
5589
+ client: socket_default.connect(uri, { transports: ["websocket"] })
5590
+ }));
5589
5591
  }
5590
5592
  if (!!meta.client) {
5591
5593
  if (!meta.isGuestReady) {