@graineai/inapp-react-native 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -66,9 +66,11 @@ export function GraineVoiceLauncher({ webView: WebView, autoStart = false, trans
|
|
|
66
66
|
});
|
|
67
67
|
}, [client, post]);
|
|
68
68
|
useEffect(() => {
|
|
69
|
-
if (ready)
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
if (!ready)
|
|
70
|
+
return;
|
|
71
|
+
pushContext();
|
|
72
|
+
return client.on("screen", () => pushContext());
|
|
73
|
+
}, [client, ready, pushContext]);
|
|
72
74
|
const beginCall = useCallback(async () => {
|
|
73
75
|
if (client.isConnected) {
|
|
74
76
|
console.warn("[graine] The provider has its own connection open while GraineVoiceLauncher " +
|
package/package.json
CHANGED