diff --git a/docs/API/hooks.mdx b/docs/API/hooks.mdx index 7f4a6129c8..5cba962dc2 100644 --- a/docs/API/hooks.mdx +++ b/docs/API/hooks.mdx @@ -237,7 +237,7 @@ useLoader(loader, url, extensions, (xhr) => { If a `result.scene` prop is found the hook will automatically create a object & material collection: `{ nodes, materials }`. This lets you build immutable scene graphs selectively. You can also specifically alter the data without having to traverse it. [GLTFJSX](https://github.com/pmndrs/gltfjsx) specifically relies on this data. ```jsx -const { nodes, material } = useLoader(GLTFLoader, url) +const { nodes, materials } = useLoader(GLTFLoader, url) ``` ### Pre-loading assets