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

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

{ composition, enhancers, context, onErrors, }

</td><td>

{ composition: ComponentInstance[]) => void; }

</td><td>

</td></tr> </tbody></table> Returns:

Promise<void>