We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acd14f0 commit bea8146Copy full SHA for bea8146
src/react-query-external-sync/useMySocket.ts
@@ -109,7 +109,9 @@ export function useMySocket({
109
deviceName,
110
deviceId: persistentDeviceId,
111
platform,
112
- extraDeviceInfo: JSON.stringify(extraDeviceInfo),
+ ...(extraDeviceInfo && Object.keys(extraDeviceInfo).length > 0
113
+ ? { extraDeviceInfo: JSON.stringify(extraDeviceInfo) }
114
+ : {}),
115
},
116
reconnection: false,
117
transports: ["websocket"], // Prefer websocket transport for React Native
0 commit comments