pmndrs / react-three-fiber

🇨🇭 A React renderer for Three.js
https://docs.pmnd.rs/react-three-fiber
MIT License
27.64k stars 1.6k forks source link

fix(useLoader): don't dispose of memoized loader #3231

Closed CodyJasonBennett closed 7 months ago

CodyJasonBennett commented 7 months ago

Fixes an issue with loaders who implement dispose. https://github.com/pmndrs/react-three-fiber/pull/2984#discussion_r1564074276

codesandbox-ci[bot] commented 7 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 841005bc6dfedb7800397ac475b15df8880dd055:

Sandbox Source
example Configuration