()
| 72 | if (!current?.targetSelector) { setRect(null); return; } |
| 73 | let rafId: number; |
| 74 | const loop = () => { |
| 75 | const el = firstVisible(current.targetSelector); |
| 76 | if (el) setRect(el.getBoundingClientRect()); |
| 77 | rafId = requestAnimationFrame(loop); |
| 78 | }; |
| 79 | rafId = requestAnimationFrame(loop); |
| 80 | return () => cancelAnimationFrame(rafId); |
| 81 | }, [current?.targetSelector]); |
nothing calls this directly
no test coverage detected