Debounce
Debounce is a component with UI = f(debounce(state))
Props
- timeout
- type:
number|Infinity - default: 0
- type:
Delays props to children component until after timeout milliseconds have elapsed since the last time props changed(shallow compare).
- leading
- type:
bool - default:
true
- type:
If leading if true, it will pass initial ...props to children. Changing leading after first render has no effect.
- ...props
- type:
number|Infinity
- type:
Rest properties would be debounced to children component.