mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): throttle sync progress update (#10278)
This commit is contained in:
@@ -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])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user