$irefs

$irefs is just like Alpine's $refs magic property except it contains the underlying Threejs objects instances of each element with an x-ref directive.

<br x-ref="mesh" x-mesh />
<br x-effect="() => console.log($irefs.mesh)" /> <!-- Log mesh's instance -->

Last updated