The object to start the search from - this object is also included in the search.
The type of the component to search for.
Optional
arr: T[]An optional array to store the found components in. If not provided, a new array is created.
If true, the array is cleared before storing the found components. Default is true.
An array of components of the given type found in the parent hierarchy of the given object.
const myComponents = getComponentsInParent(myObject, MyComponent);
Generated using TypeDoc
Searches for a given component type in the parent hierarchy of the given object.