My intention is to customize items in character in webview and sent the items name from react native.
The data is send correctly but when I need to set the state inside the web add event listener.
It have no problem when set state in color, but it crash when set state color and geometry
My intention is to customize items in character in webview and sent the items name from react native. The data is send correctly but when I need to set the state inside the web add event listener.
It have no problem when set state in color, but it crash when set state color and geometry
`function Boy(props) { const group = useRef() const { nodes, materials } = useGLTF('/man6.gltf')
}
useGLTF.preload('/man6.gltf')`
I try to put the state outside the function, it's work. Note: useSnapshot can't use twice in the same function and I'm not sure why.
Did anyone have any suggest about this? Thank you