MCPcopy Create free account
hub / github.com/anomalyco/opencode / PacedMarkdown

Function PacedMarkdown

packages/session-ui/src/components/message-part.tsx:321–332  ·  view source on GitHub ↗
(props: { text: string; cacheKey: string; streaming: boolean })

Source from the content-addressed store, hash-verified

319}
320
321function PacedMarkdown(props: { text: string; cacheKey: string; streaming: boolean }) {
322 const value = createPacedValue(
323 () => props.text,
324 () => props.streaming,
325 )
326
327 return (
328 <Show when={value()}>
329 <Markdown text={value()} cacheKey={props.cacheKey} streaming={props.streaming} />
330 </Show>
331 )
332}
333
334function relativizeProjectPath(path: string, directory?: string) {
335 if (!path) return ""

Callers

nothing calls this directly

Calls 2

createPacedValueFunction · 0.85
valueFunction · 0.70

Tested by

no test coverage detected