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

Function renderStreamingDisplay

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

Source from the content-addressed store, hash-verified

104 const frozenTrackLenRef = useRef(0);
105
106 const renderStreamingDisplay = (): string => stripCaret(html);
107
108 const placeStreamingCaret = (el: HTMLElement, displayHtml: string, track: string) => {
109 if (isStreaming && /<span\s+class="sh-caret"/i.test(displayHtml)) {

Callers 1

resetStreamDomFunction · 0.85

Calls 1

stripCaretFunction · 0.90

Tested by

no test coverage detected