Check the render method of Model #1095
Unanswered
carmandale
asked this question in
Q&A
Replies: 1 comment
-
you have a codesandbox or code? like the message says, setstate inside the render function somewhere, that isn't caused by gltfjsx for sure. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting this error in the console
Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of Model.
I have narrowed it down to the GLTFJSX converted model. I have the model in a component, which is in another component, which is in the App.js. I am not passing any state or props to the model. And the only modification to the model is that I am importing some textures and applying them to geo. Everything works fine, so it isn't causing a problem. But I would like to not have the error.
Any thoughts or ideas?
thanks,
Dale
Beta Was this translation helpful? Give feedback.
All reactions