In any component based on Popper (e.g., Popover, Dropdown, ...), it would be good to have the ability to know when the position changes and access the pos object
We only need to add something like:
mergedProps.onPositionChange?.(pos, floatingEl);
at the end of the updatePosition function