fix(viewer): 🐛 Attempt to fix loading issue in iframe safari
This commit is contained in:
@ -27,9 +27,11 @@ export const TypebotPage = ({
|
||||
const [resultId, setResultId] = useState<string | undefined>()
|
||||
|
||||
// Workaround for react-frame-component bug (https://github.com/ryanseddon/react-frame-component/pull/207)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
useEffect(() => {
|
||||
if (showTypebot) return
|
||||
setShowTypebot(true)
|
||||
}, [])
|
||||
})
|
||||
|
||||
const initializeResult = async (variables: VariableWithValue[]) => {
|
||||
const resultIdFromSession = getExistingResultFromSession()
|
||||
|
Reference in New Issue
Block a user