kikoano / web2vr

Dynamically translate HTML and CSS to A-Frame 3D world for virtual reality.
MIT License
126 stars 23 forks source link

Reactive elements create duplicate entities on re-render #9

Closed mattrossman closed 3 years ago

mattrossman commented 3 years ago

I tried building a simple UI using preact and connecting it to web2vr:

https://glitch.com/~mercury-veil-newsprint

When the text is clicked, a new piece of text is created next to the old one instead of the old one updating, which compounds into a huge chunk of text.

kikoano commented 3 years ago

It doesnt support React because React virtual dom works bit different.

kikoano commented 3 years ago

I will start working to make Web2VR work with React.