Skip to content

Commit

Permalink
docs: fix typo (#3024)
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-stephanie authored Sep 25, 2023
1 parent f50900f commit d1411f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API/hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1411f9

Please sign in to comment.