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

Function seedTableCounts

src/streamhtml.tsx:134–140  ·  view source on GitHub ↗
(el: HTMLElement, track: string)

Source from the content-addressed store, hash-verified

132 }, [isStreaming]);
133
134 const seedTableCounts = (el: HTMLElement, track: string) => {
135 if (isStreaming && findTableStart(track) !== -1) {
136 initTableRowCountsFromTrack(el, track);
137 } else {
138 initTableRowCounts(el);
139 }
140 };
141
142 useLayoutEffect(() => {
143 const el = ref.current;

Callers 1

resetStreamDomFunction · 0.85

Calls 3

findTableStartFunction · 0.90
initTableRowCountsFunction · 0.90

Tested by

no test coverage detected