MCPcopy
hub / github.com/streamlit/streamlit / deleteState

Method deleteState

frontend/lib/src/WidgetStateManager.ts:165–167  ·  view source on GitHub ↗

Remove the WidgetState proto with the given id, if it exists.

(widgetId: string)

Source from the content-addressed store, hash-verified

163
164 /** Remove the WidgetState proto with the given id, if it exists. */
165 public deleteState(widgetId: string): void {
166 this.widgetStates.delete(widgetId)
167 }
168
169 /** Remove the state of widgets that are not contained in `activeIds`. */
170 public removeInactive(activeIds: Set<string>): void {

Callers 2

deleteWidgetStateMethod · 0.80

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected