MCPcopy Index your code
hub / github.com/material-shell/material-shell / setState

Method setState

src/manager/stateManager.ts:99–106  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

97 return this.state[key];
98 }
99 setState(key: string, value: any) {
100 if (value === undefined) {
101 delete this.state[key];
102 } else {
103 this.state[key] = value;
104 }
105 this.saveRegistry();
106 }
107
108 stateChanged() {
109 if (

Callers 4

saveCurrentStateMethod · 0.95
onResultActivatedMethod · 0.80
checkMethod · 0.80

Calls 1

saveRegistryMethod · 0.95

Tested by

no test coverage detected