diff --git a/packages/ui/src/views/App.tsx b/packages/ui/src/views/App.tsx index de49e2d40b12..4b80e8bbd8dc 100644 --- a/packages/ui/src/views/App.tsx +++ b/packages/ui/src/views/App.tsx @@ -52,11 +52,11 @@ export function App(props: IUniverAppProps) { const uiPartsService = useDependency(IUIPartsService); - const [updateTrigger, setUpdateTrigger] = useState(false); + const [updateTrigger, setUpdateTrigger] = useState({}); useEffect(() => { const updateSubscription = uiPartsService.componentRegistered$.subscribe(() => { - setUpdateTrigger((prev) => !prev); + setUpdateTrigger({}); }); return () => {