Window Resize Helper
v1.0.0
Handling window resize events smoothly and easily.
Listen to Window screen-width changes
A screen-width change is only triggered when the window width changes in pixels.
i.e.: on rotating a Device or by resizing a Window.
const unsubscribe = WindowResizeHelper.onResize(width => {
console.log(width);
});
Unsubscribe listening to screen-width changes
call the previous assigned unsubscribe
unsubscribe(); Previous: Helpers
← Token HelperNext: Interfaces
KeyValue →