From cd823fe1185ab38bd5506d5106e8ec0524a46e30 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Tue, 30 Jul 2024 14:19:10 +0000 Subject: [PATCH] fix(electron): app flicker issue (#7663) fix AF-1117 --- .../components/root-app-sidebar/updater-button.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/frontend/core/src/components/root-app-sidebar/updater-button.tsx b/packages/frontend/core/src/components/root-app-sidebar/updater-button.tsx index 38383a2255..c37e9c985d 100644 --- a/packages/frontend/core/src/components/root-app-sidebar/updater-button.tsx +++ b/packages/frontend/core/src/components/root-app-sidebar/updater-button.tsx @@ -1,8 +1,9 @@ import { useAppUpdater } from '@affine/core/hooks/use-app-updater'; +import { Suspense } from 'react'; import { AppUpdaterButton } from '../app-sidebar'; -export const UpdaterButton = () => { +const UpdaterButtonInner = () => { const appUpdater = useAppUpdater(); return ( @@ -20,3 +21,11 @@ export const UpdaterButton = () => { /> ); }; + +export const UpdaterButton = () => { + return ( + + + + ); +};