fix(core): fix ui flickering on startup (#7349)

This commit is contained in:
EYHN
2024-06-27 03:33:14 +00:00
parent 6f31d5ee6a
commit 595b904d24
3 changed files with 45 additions and 115 deletions
@@ -1,5 +1,5 @@
import { useLiveData, useService, WorkspaceService } from '@toeverything/infra';
import { Suspense, useEffect } from 'react';
import { useEffect } from 'react';
import { AuthService } from '../../../modules/cloud';
@@ -44,9 +44,5 @@ const SyncAwarenessInner = () => {
// TODO(@eyhn): we could do something more interesting here, e.g., show where the current user is
export const SyncAwareness = () => {
return (
<Suspense>
<SyncAwarenessInner />
</Suspense>
);
return <SyncAwarenessInner />;
};