@react-remote-state/client 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
-
|
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) {
|