MCPcopy
hub / github.com/preactjs/preact / setState

Method setState

debug/src/internal.d.ts:19–19  ·  view source on GitHub ↗
(objOrFn: any)

Source from the content-addressed store, hash-verified

17
18export interface DevtoolsUpdater {
19 setState(objOrFn: any): void;
20 forceUpdate(): void;
21 setInState(path: Array<string | number>, value: any): void;
22 setInProps(path: Array<string | number>, value: any): void;

Callers 15

constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
componentDidCatchMethod · 0.80
constructorMethod · 0.80
componentDidCatchMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
unsuspendMethod · 0.80
suspense.test.jsxFile · 0.80

Calls

no outgoing calls

Tested by 15

constructorMethod · 0.64
constructorMethod · 0.64
componentDidCatchMethod · 0.64
constructorMethod · 0.64
componentDidCatchMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64
unsuspendMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64
constructorMethod · 0.64