Home > @uniformdev/canvas > enhance
enhance() function
Applies enhancer functions to a component tree. IMPORTANT: the input composition object is mutated. Plan accordingly. Want immutability? Grab immer :)
Signature:
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ composition, enhancers, context, onErrors, } |
(not declared) | |
|
input |
{ composition: ComponentInstance[]) => void; } |
Returns:
Promise<void>