-
Progress throttling - 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?: numberoption (ms) toComputeOptions - Throttle
onProgresscalls in the React hook - Consider both throttle (regular intervals) and debounce (wait for pause) strategies
- Add
-
Typed registry - Add TypeScript support to narrow function names to only registered functions for autocomplete and type safety.
- Make
useCompute('functionName')autocomplete only registered function names - Type safety on input/output based on registered function signatures
- Consider using TypeScript's string literal types or const assertions
- Make
- Add more WASM examples (Rust, C++)
- Benchmark suite for comparing JS vs WASM performance
- Documentation site (Docusaurus or similar)
-
useComputeMultiplehook for managing multiple parallel tasks -
useComputeFilehook for loading functions from separate files - Built-in caching for compute results
- Streaming results for very large outputs