Skip to main content
Returns a Weaverse item instance by ID, or the current rendered item when no ID is provided. The item store exposes data (always includes id and type), setData(update) to merge an update and re-render, triggerUpdate() to re-render without changing data, _id, and _element (the DOM node, when mounted). Read the current component’s data:
Update another component by its instance ID:
Find the closest Weaverse item from a DOM node. Weaverse renders each item with a data-wv-id attribute:

Parameters

string
Optional item ID to look up.

Returns

WeaverseItemStore | null The matching item instance, or null when it is unavailable.