(
current: HTMLElement | null,
next: HTMLElement | null
)
| 738 | : new ResizeObserver(measure) |
| 739 | |
| 740 | const observe = ( |
| 741 | current: HTMLElement | null, |
| 742 | next: HTMLElement | null |
| 743 | ) => { |
| 744 | if (current !== null) resizeObserver?.unobserve(current) |
| 745 | if (next !== null) resizeObserver?.observe(next) |
| 746 | return next |
| 747 | } |
| 748 | |
| 749 | const sync = () => { |
| 750 | const nextViewport = find(viewportAttr) |