Open hasparus opened 1 year ago
Sup folks. Firstly, I love this package. Thank you so much for your work on it.
I've encountered the following error from React.
`_source` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.
_source is added to props of every element, including fragments. After a quick skim of the code, I think it happens here: https://github.com/pmndrs/react-three-editor/blob/main/packages/vite/src/babel/babel.ts#L240-L253
_source
I suppose I should ask — can anything break if I added an if statement there to avoid adding _source to Fragments? Is there any other piece of the code that expects _source to be given to all elements?
No that would be perfect!
Sup folks. Firstly, I love this package. Thank you so much for your work on it.
I've encountered the following error from React.
_source
is added to props of every element, including fragments. After a quick skim of the code, I think it happens here: https://github.com/pmndrs/react-three-editor/blob/main/packages/vite/src/babel/babel.ts#L240-L253I suppose I should ask — can anything break if I added an if statement there to avoid adding
_source
to Fragments? Is there any other piece of the code that expects_source
to be given to all elements?