MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / setState

Function setState

src/scripts/clipperUI/componentBase.ts:21–29  ·  view source on GitHub ↗
(newPartialState: TState)

Source from the content-addressed store, hash-verified

19 }
20
21 public setState(newPartialState: TState) {
22 m.startComputation();
23 for (let key in newPartialState) {
24 if (newPartialState.hasOwnProperty(key)) {
25 this.state[key] = newPartialState[key];
26 }
27 }
28 m.endComputation();
29 }
30
31 public ref(name: string) {
32 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected