Commit f12786d8 by zhaochengxiang

qiankun

parent 7064ec18
......@@ -32,9 +32,19 @@ const FC = ({ type, data }) => {
}, [])
React.useEffect(() => {
setTimeout(() => {
microApp.current?.update?.({ type, data })
}, 200)
function updateMicroApp() {
if (microApp.current?.update) {
setTimeout(() => {
microApp.current?.update?.({ type, data })
}, 100)
} else {
setTimeout(() => {
updateMicroApp()
}, 100)
}
}
updateMicroApp()
}, [type, data])
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment