()
| 249 | } |
| 250 | let raf = 0; |
| 251 | const tick = () => { |
| 252 | const el = msgsRef.current; |
| 253 | if (el) { |
| 254 | tickStreamScrollFollow(el, msgsScrollFollowRef.current); |
| 255 | } |
| 256 | const bts = btsRef.current; |
| 257 | if (bts) { |
| 258 | tickStreamScrollFollow(bts, btsScrollFollowRef.current); |
| 259 | } |
| 260 | raf = requestAnimationFrame(tick); |
| 261 | }; |
| 262 | raf = requestAnimationFrame(tick); |
| 263 | return () => cancelAnimationFrame(raf); |
| 264 | }, [streaming]); |
nothing calls this directly
no test coverage detected