supermedium / aframe-react

:atom: Build virtual reality experiences with A-Frame and React.
https://ngokevin.github.io/aframe-react-boilerplate/
MIT License
1.42k stars 151 forks source link

core:schema:warn Unknown property `0` for component/system #124

Open ChristopheBougere opened 5 years ago

ChristopheBougere commented 5 years ago

Quite similar to https://github.com/ngokevin/aframe-react/issues/40 When creating a custom component which has no properties, React converts this: <Entity my-custom-component /> to <Entity my-custom-component="true" /> Aframe is expecting an object for the schema, and thinks it has 4 properties (t, r, u and e). A quick workaround is to set an empty string as property: <Entity my-custom-component="" /> But could this be fixed by aframe-react?