MCPcopy
hub / github.com/streamlit/streamlit / clearTransientNodes

Method clearTransientNodes

frontend/lib/src/render-tree/AppRoot.ts:371–387  ·  view source on GitHub ↗
(fragmentIdsThisRun?: Array<string>)

Source from the content-addressed store, hash-verified

369 }
370
371 public clearTransientNodes(fragmentIdsThisRun?: Array<string>): AppRoot {
372 const visitor = new ClearTransientNodesVisitor(fragmentIdsThisRun)
373 const newChildren = this.root.children.map(node =>
374 this.ensureBlockNode(node.accept(visitor))
375 )
376
377 return new AppRoot(
378 this.mainScriptHash,
379 new BlockNode(
380 this.mainScriptHash,
381 newChildren,
382 new BlockProto({ allowEmpty: true }),
383 this.main.scriptRunId
384 ),
385 this.appLogo
386 )
387 }
388
389 /** Return a Set containing all Elements in the tree. */
390 public getElements(): Set<Element> {

Callers 2

AppRoot.test.tsFile · 0.80
AppClass · 0.80

Calls 3

ensureBlockNodeMethod · 0.95
mapMethod · 0.80
acceptMethod · 0.65

Tested by

no test coverage detected