@platform/react
Version:
React refs and helpers.
6 lines (5 loc) • 299 B
JavaScript
import { animationFrameScheduler } from 'rxjs';
import { observeOn, share } from 'rxjs/operators';
import { fromWindowEvent } from './util';
export const hashChange$ = fromWindowEvent('hashchange');
export const resize$ = fromWindowEvent('resize').pipe(observeOn(animationFrameScheduler), share());