mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 13:02:21 +08:00
fix(core): throttle sync progress update (#10278)
This commit is contained in:
@@ -87,7 +87,7 @@ const useSyncEngineSyncProgress = (meta: WorkspaceMetadata) => {
|
|||||||
const engineState = useLiveData(
|
const engineState = useLiveData(
|
||||||
useMemo(() => {
|
useMemo(() => {
|
||||||
return workspace
|
return workspace
|
||||||
? LiveData.from(workspace.engine.doc.state$, null).throttleTime(100)
|
? LiveData.from(workspace.engine.doc.state$, null).throttleTime(500)
|
||||||
: null;
|
: null;
|
||||||
}, [workspace])
|
}, [workspace])
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user