ReadonlyBehaviorSubject
that tracks the latest state of browser's window dimensions.
Is stubbed to also work on sever.
import { windowSize$ } from 'rx-use/lib/windowSize$';
windowSize$.subscribe(({ width, height }) => {
console.log(width, height); // 1024, 768
});