MCPcopy
hub / github.com/streamlit/streamlit / getState

Method getState

frontend/lib/src/WidgetStateManager.ts:160–162  ·  view source on GitHub ↗

Return the WidgetState for the given widgetID if it exists.

(widgetId: string)

Source from the content-addressed store, hash-verified

158
159 /** Return the WidgetState for the given widgetID if it exists. */
160 public getState(widgetId: string): WidgetState | undefined {
161 return this.widgetStates.get(widgetId)
162 }
163
164 /** Remove the WidgetState proto with the given id, if it exists. */
165 public deleteState(widgetId: string): void {

Callers 3

getWidgetStateMethod · 0.45
useVegaLiteSelectionsFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected