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>()
|
const [resultId, setResultId] = useState<string | undefined>()
|
||||||
|
|
||||||
// Workaround for react-frame-component bug (https://github.com/ryanseddon/react-frame-component/pull/207)
|
// Workaround for react-frame-component bug (https://github.com/ryanseddon/react-frame-component/pull/207)
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (showTypebot) return
|
||||||
setShowTypebot(true)
|
setShowTypebot(true)
|
||||||
}, [])
|
})
|
||||||
|
|
||||||
const initializeResult = async (variables: VariableWithValue[]) => {
|
const initializeResult = async (variables: VariableWithValue[]) => {
|
||||||
const resultIdFromSession = getExistingResultFromSession()
|
const resultIdFromSession = getExistingResultFromSession()
|
||||||
|
|||||||
Reference in New Issue
Block a user