Issue with resize event

The resize event on the window object fired every single time something changes on the UI.
For example, given the following, I get ‘resized…’ in the console every second, even if the panel is not resized:

let val = 0
setInterval(() => someElement.textContent = val++, 1000)
window.onresize = () => console.log('resized...')

Is this how it is supposed to be in panel UI?

Same problem for me

Someone find a solution?

Thanks