Home > @uniformdev/canvas > walkComponentTree

walkComponentTree() function

Warning: This API is now obsolete.

use walkNodeTree

Walks a composition's component tree, visiting each component instance depth-first, in order.

Signature:

Parameters

ParameterTypeDescription
componentComponentInstance
visitor(component: ComponentInstance<TContext>, currentContext: TContext | undefined) => void
initialContextTContext(Optional)

Returns:

void