Debounce a state change with a sustain.
This is debounce with true|false
passed to the callback.
In this example the value of scrolling
will be true during the scroll event and for 250ms after.
import sustain from 'sustain';
let scrolling = false;
sustainScrolling = sustain(250, (state) => scrolling = state)