$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.
$irefs
$refs
x-ref
<br x-ref="mesh" x-mesh /> <br x-effect="() => console.log($irefs.mesh)" /> <!-- Log mesh's instance -->
Last updated 1 year ago