MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / tick

Function tick

demo/chat/App.tsx:251–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]);

Callers

nothing calls this directly

Calls 1

tickStreamScrollFollowFunction · 0.85

Tested by

no test coverage detected