Skip to content

Interface: D3PPropsHooks<T> ​

Defined in: core/props.ts:21

What an owner does around a change of its props: beforeSet can cancel it, afterSet reacts to it.

Type Parameters ​

T ​

T extends object

Methods ​

afterSet()? ​

ts
afterSet?(props): void;

Defined in: core/props.ts:25

Called after a change, with the props.

Parameters ​

props ​

D3PProps<T>

Returns ​

void


beforeSet()? ​

ts
beforeSet?(info): boolean | void;

Defined in: core/props.ts:23

Return true to cancel the operation.

Parameters ​

info ​
merging ​

boolean

newVal ​

unknown

oldVal ​

T

Returns ​

boolean | void