Subscribes to window resize events.
The callback to execute on resize.
Configuration options (debounceTime).
This hook listens to the global resize$ observable and triggers the callback when the window is resized. It supports debouncing to prevent excessive callback execution.
resize$
useResize(() => { console.log("Window resized");}, { debounceTime: 100 }); Copy
useResize(() => { console.log("Window resized");}, { debounceTime: 100 });
Subscribes to window resize events.