From d1411f9c01299102b7d2a55f0f9e546c1e27d694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A4=B0=E4=BA=91=E6=8B=BF=E9=93=81?= <102728558+lin-stephanie@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:19:39 +0800 Subject: [PATCH] docs: fix typo (#3024) --- docs/API/hooks.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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