@react-remote-state/client 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
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) {