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

Function resetStreamDom

src/streamhtml.tsx:178–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 }
177
178 const resetStreamDom = () => {
179 frozenTrackLenRef.current = 0;
180 resetSvgStreamRegions(el);
181 el.innerHTML = isStreaming ? renderStreamingDisplay() : html;
182 resetPatchState(el);
183 seedTableCounts(el, nextTrack);
184 placeStreamingCaret(el, html, nextTrack);
185 contentRef.current = nextTrack;
186 };
187
188 if (!isStreaming || !prevTrack) {
189 resetStreamDom();

Callers 1

streamhtml.tsxFile · 0.85

Calls 5

resetPatchStateFunction · 0.90
resetSvgStreamRegionsFunction · 0.85
renderStreamingDisplayFunction · 0.85
seedTableCountsFunction · 0.85
placeStreamingCaretFunction · 0.85

Tested by

no test coverage detected