Skip to content

Commit 16a5d9a

Browse files
committed
fixes error loading
1 parent 5427fdc commit 16a5d9a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

packages/react-native/src/components/survey-web-view.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ export function SurveyWebView(props: SurveyWebViewProps): JSX.Element | null {
150150
appUrl,
151151
clickOutside,
152152
overlay,
153-
getSetIsResponseSendingFinished: (
154-
_f: (value: boolean) => void,
155-
) => undefined,
156153
isWebEnvironment: false,
157154
}),
158155
}}
@@ -371,13 +368,18 @@ const renderHtml = (
371368
window.ReactNativeWebView.postMessage(JSON.stringify({ onResponseCreated: true }));
372369
};
373370
371+
function getSetIsResponseSendingFinished() { /* noop — presence flips initial state to false so loading spinner renders until ResponseQueue resolves */ };
372+
function getSetIsError() { /* noop */ };
373+
374374
function loadSurvey() {
375375
const options = ${JSON.stringify(options)};
376376
const surveyProps = {
377377
...options,
378378
onDisplayCreated,
379379
onResponseCreated,
380380
onClose,
381+
getSetIsResponseSendingFinished,
382+
getSetIsError,
381383
};
382384
383385
window.formbricksSurveys.renderSurvey(surveyProps);

0 commit comments

Comments
 (0)