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

Method onUpdateState

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

* Listen to the Component state update event * @param listener

(listener: (prevState: S, nextState: S) => void)

Source from the content-addressed store, hash-verified

22 * @param listener
23 */
24 onUpdateState(listener: (prevState: S, nextState: S) => void): void;
25 /**
26 * Remove the Component update event listening, default is remove all,
27 * also you can remove one by pass the listener

Callers 2

componentDidMountMethod · 0.80
component.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected