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

Method _hook

hooks/src/internal.d.ts:23–23  ·  view source on GitHub ↗

Attach a hook that is invoked before a hook's state is queried.

(component: Component, index: number, type: HookType)

Source from the content-addressed store, hash-verified

21 _unmount?(vnode: VNode): void;
22 /** Attach a hook that is invoked before a hook's state is queried. */
23 _hook?(component: Component, index: number, type: HookType): void;
24}
25
26// Hook tracking

Callers 1

getHookStateFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected