@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.mjs CHANGED
@@ -5572,7 +5572,9 @@ function useRemoteReducer(uri, reducer, gameId) {
5572
5572
  };
5573
5573
  useEffect(() => {
5574
5574
  if (!meta.client) {
5575
- meta.client = socket_default.connect(uri, { transports: ["websocket"] });
5575
+ setMeta(__spreadProps(__spreadValues({}, meta), {
5576
+ client: socket_default.connect(uri, { transports: ["websocket"] })
5577
+ }));
5576
5578
  }
5577
5579
  if (!!meta.client) {
5578
5580
  if (!meta.isGuestReady) {