MCPcopy
hub / github.com/streamlit/streamlit / maybeSetState

Method maybeSetState

frontend/app/src/App.tsx:1337–1343  ·  view source on GitHub ↗
(stateUpdate: MaybeStateUpdate)

Source from the content-addressed store, hash-verified

1335 }
1336
1337 maybeSetState(stateUpdate: MaybeStateUpdate): void {
1338 if (stateUpdate) {
1339 const [newState, callback] = stateUpdate
1340
1341 this.setState(newState as State, callback)
1342 }
1343 }
1344
1345 /**
1346 * Handler for ForwardMsg.newSession messages. This runs on each rerun

Callers 1

AppClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected