[examples/with-three-js] Component with useLoader can use dynamic import (#14648)
The existing example gives an error on every hot reload, perhaps because of the way that an initial `useEffect` hook imports the `GLTFLoader` and it doesn't redo that on hot reload? Putting the component using the `useLoader` hook in a dynamic import seems to fix this. Open to better suggestions, this is kind of awkward to use still...
Showing
Please
register
or
sign in
to comment