Add optional progressThrottle option 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
onProgress calls in the React hook
- Consider both throttle (regular intervals) and debounce (wait for pause) strategies
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.progressThrottle?: numberoption (ms) toComputeOptionsonProgresscalls in the React hook