#useLoader makes render component twice

5 messages · Page 1 of 1 (latest)

obsidian shuttle
#

loading textures like below makes render component twice. Even sibling components with no loader render twice when one component with it exists. How to solve it?

const gradient = useLoader(THREE.TextureLoader, "./gradient-01.png");
console.log("render")l
brisk wasp
#

may be create a sandbox..so we can solve simultaneously

obsidian shuttle
#

after comment:

const charsTexture = useLoader(THREE.TextureLoader, 'gradient-01.png')

there is only one render