Menu

#4 Add Progress throttling

open
nobody
2025-12-30
2025-12-30
Anonymous
No

Originally created by: tapava

Add optional progressThrottleoption to prevent state flooding when compute functions fire progress updates in tight loops. Should throttle/debounce progress callbacks to avoid choking the main thread with re-renders.

  • Add progressThrottle?: number option (ms) to ComputeOptions
  • Throttle onProgresscalls in the React hook
  • Consider both throttle (regular intervals) and debounce (wait for pause) strategies

Discussion


Log in to post a comment.

MongoDB Logo MongoDB