You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
observe() always triggers the callback once with the current size. This makes it impossible to pause and resume without extra logic to ignore that first call.
For example, if we want to explicitly change an element’s size and not have the callback fire, we cannot simply unobserve() and then observe() again - the re-observation will still trigger the callback.
Proposal: Add a boolean option to ResizeObserverOptions to suppress the initial callback when starting observation.