ok.. I am not a react expert but maybe it can be done with a ref.. that is used inside the `debounceResize` like `setWindowResize({width: ref.current.width})` and in a `useEffect`
```
useEffect(() => {
ref.current = {width: window.innerWidth, height: ....}
}, [window.innerWidth, window.innerHeight])
```