MCPcopy
hub / github.com/streamlit/streamlit / blockWithId

Function blockWithId

frontend/lib/src/render-tree/test-utils.ts:94–105  ·  view source on GitHub ↗
(
  id: string,
  children: AppNode[] = [],
  scriptRunId = NO_SCRIPT_RUN_ID
)

Source from the content-addressed store, hash-verified

92
93/** Create a BlockNode with a specific block-level id. */
94export function blockWithId(
95 id: string,
96 children: AppNode[] = [],
97 scriptRunId = NO_SCRIPT_RUN_ID
98): BlockNode {
99 return new BlockNode(
100 FAKE_SCRIPT_HASH,
101 children,
102 makeProto(BlockProto, { id }),
103 scriptRunId
104 )
105}
106
107/** Create a ForwardMsgMetadata with the given container and path */
108export function forwardMsgMetadata(

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…