UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

6 lines (4 loc) 196 B
import {EMPTY, fromEvent} from 'rxjs' import {shareReplay} from 'rxjs/operators' export const resize$ = typeof window === 'undefined' ? EMPTY : fromEvent(window, 'resize').pipe(shareReplay(1))