Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 243 Bytes

raf.md

File metadata and controls

10 lines (7 loc) · 243 Bytes

raf()

rxjs operator which de-bounces events using window.requestAnimationFrame. Emits the first value immediately. On sever, is stubbed and has no effect.

import { raf } from 'rx-use';

fromEvent(el, 'scroll').pipe(raf());