Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): throttle sync progress update (#10278)

EYHN53cada4640f1
diff --git a/packages/frontend/core/src/components/workspace-selector/workspace-card/index.tsx b/packages/frontend/core/src/components/workspace-selector/workspace-card/index.tsx
index 3613f8112b..f64b265169 100644
--- a/packages/frontend/core/src/components/workspace-selector/workspace-card/index.tsx
+++ b/packages/frontend/core/src/components/workspace-selector/workspace-card/index.tsx
@@ -87,7 +87,7 @@ const useSyncEngineSyncProgress = (meta: WorkspaceMetadata) => {
const engineState = useLiveData(
useMemo(() => {
return workspace
- ? LiveData.from(workspace.engine.doc.state$, null).throttleTime(100)
+ ? LiveData.from(workspace.engine.doc.state$, null).throttleTime(500)
: null;
}, [workspace])
);