EntityChangeOptions
Defined in: rxdb-react/src/use-entity-change.ts:21
useEntityChange 的时间窗配置。
Remarks
两个字段单位均为毫秒,默认 0;同时设置时串联生效,
顺序固定为 debounceTime → auditTime,不是二选一。
仅正有限值生效:0(默认)、负值、NaN、Infinity 一律表示不挂入对应
operator。两个窗口都禁用时 patch 同步透传,组件能在同一批更新里完成重渲染。
改变窗口值会重建管道并重新订阅。
Properties
auditTime?
optional auditTime?: number;
Defined in: rxdb-react/src/use-entity-change.ts:25
采样窗口毫秒数:窗口内只放行最后一次 patch,为持续输入提供稳定的刷新节流。
debounceTime?
optional debounceTime?: number;
Defined in: rxdb-react/src/use-entity-change.ts:23
防抖窗口毫秒数:安静满该时长才放行,持续输入期间不重渲染。