Skip to main content
Returns the direct child instances of an item. A found parent instance must have a children array in its data; if it is missing, the hook throws instead of returning an empty array. Build carousel navigation from the slides’ data. Weaverse passes the rendered child items as children, in the same order as the child instances; the carousel shows the active one itself.

Parameters

string
Optional parent item ID; defaults to the current rendered item.

Returns

WeaverseItemStore[] Child item stores registered in the runtime, or an empty array when the parent instance cannot be found.