MCPcopy
hub / github.com/streamlit/streamlit / block

Function block

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

Source from the content-addressed store, hash-verified

79
80/** Create a BlockNode with the given properties. */
81export function block(
82 children: AppNode[] = [],
83 scriptRunId = NO_SCRIPT_RUN_ID
84): BlockNode {
85 return new BlockNode(
86 FAKE_SCRIPT_HASH,
87 children,
88 makeProto(BlockProto, {}),
89 scriptRunId
90 )
91}
92
93/** Create a BlockNode with a specific block-level id. */
94export function blockWithId(

Calls 1

makeProtoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…