API Reference
Debounce
Internal debounce helper used by the runtime for delayed reactions.
Debounce
Debounce is a small internal helper that wraps a function and delays execution until calls stop for a given period.
Public status
Debounce lives in src/utils, but it is not exported by the package root. Treat it as internal runtime reference.
What it does
It:
- stores the latest timeout id
- clears the previous timeout on each call
- runs the wrapped function only after the delay passes without another call
- preserves the original
thiscontext and arguments
Runtime role
In the current runtime it is used for delayed resize-related reactions.
When to use it
If you are working inside the library itself, it is the standard debounce helper already present in the codebase.
If you are integrating against the package from the outside, do not rely on it as public API.