@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.mjs
CHANGED
@@ -5572,7 +5572,9 @@ function useRemoteReducer(uri, reducer, gameId) {
|
|
5572
5572
|
};
|
5573
5573
|
useEffect(() => {
|
5574
5574
|
if (!meta.client) {
|
5575
|
-
|
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) {
|