fix(electron): app flicker issue (#7663)

fix AF-1117
This commit is contained in:
pengx17 2024-07-30 14:19:10 +00:00
parent b343f975fb
commit cd823fe118
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -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 (
<Suspense>
<UpdaterButtonInner />
</Suspense>
);
};