fix: update preview when props change (#6860)

This commit is contained in:
Dhruwang Jariwala
2025-11-20 18:56:55 +05:30
committed by GitHub
parent f6683d1165
commit 70978fbbdf

View File

@@ -80,7 +80,7 @@ export const SurveyInline = (props: Omit<SurveyContainerProps, "containerId">) =
loadScript();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [props]);
useEffect(() => {
if (isScriptLoaded) {