Function: watchView()
ts
function watchView(el, measure): () => void;Call measure now and again (at most once a frame) whenever the page or any scrolling container scrolls, the window resizes or el does. Returns a function that stops it.
Parameters
| Parameter | Type |
|---|---|
el | Element |
measure | () => void |
Returns
() => void