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

ParameterTypeDescription
{ composition, enhancers, context, onErrors, }{ composition: ComponentInstance[]) => void; }

Returns:

Promise<void>