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
Parameter | Type | Description |
---|---|---|
component | ComponentInstance | |
visitor | (component: ComponentInstance<TContext>, currentContext: TContext | undefined) => void | |
initialContext | TContext | (Optional) |
Returns:
void