Open ngokevin opened 8 years ago
@ngokevin I have created a repo https://github.com/ltfschoen/react-fluxible-test that shows how to incorporate A-Frame React into a Fluxible app (i.e. uses isomorphic architecture with server-side rendering)
@ltfschoen Nice! Can you give a brief description how you were able to get it to work?
@ngokevin
window
object is available)With v4.0.x, A-Frame doesn't use AFRAME
necessarily. But it uses A-Frame's .setAttribute()
s now, which won't work as well server-side. Need to think about this more.
@ngokevin looks like setAttribute
is only used on componentDidMount
and componentDidUpdate
which are after mount, so i think that part should be ok (since only the componentWillMount
lifecycle function is called server-side)
Currently tied to
AFRAME.components
. Can't include A-Frame because ofwindow
.https://github.com/aframevr/aframe/issues/2031