MCPcopy Create free account
hub / github.com/DTStack/molecule / setState

Method setState

src/react/component.ts:14–14  ·  view source on GitHub ↗

* Set the Component state * @param values The next values of state * @param callback calling after setState

(values: S, callback?: (prevState: S, nextState: S) => void)

Source from the content-addressed store, hash-verified

12 * @param callback calling after setState
13 */
14 setState(values: S, callback?: (prevState: S, nextState: S) => void): void;
15 /**
16 * Trigger the Component update event
17 * @param nextState

Callers 15

ConnectorClass · 0.80
forceUpdateFunction · 0.80
connector.test.tsxFile · 0.80
component.test.tsFile · 0.80
componentDidMountMethod · 0.80
SelectClass · 0.80
setValueMethod · 0.80
DemoClass · 0.80
AppClass · 0.80
initViewMethod · 0.80
initViewMethod · 0.80
initViewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected