pmndrs/suspend-react

Assets are not cached correctly using array as useLoader input

clementroche opened this issue · 0 comments

  • three version: 0.149.0
  • @react-three/fiber version: 8.10.1

Problem description:

By using Array as input in drei/useTexture or drei/useGLTF, the files are not cached correctly. As you can see, assets are logged twice in the console

Relevant code:

https://codesandbox.io/s/drei-loader-cache-issue-qce40y

Suggested solution:

Error probably comes from useLoader