brianzinn / react-babylonjs

React for Babylon 3D engine
https://brianzinn.github.io/react-babylonjs/
809 stars 102 forks source link

Use useAfterRender instead of useBeforeRender for Html #261

Closed dennemark closed 1 year ago

dennemark commented 1 year ago

Html component always had a delay in rendering. It seems the position of the attached node was not fully calculated in useBeforeRender, but in useAfterRender it is. Makes sense now, thinking about it. Now the Html component should update in "realtime". Please confirm.

brianzinn commented 1 year ago

thanks @dennemark - nice find!