diff --git a/.eslintrc.json b/.eslintrc.json index fcb038ec6a..26d1cab987 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -70,6 +70,7 @@ "rules": { "import/no-unresolved": "off", "import/named": "off", - "import/namespace": "off" + "import/namespace": "off", + "import/no-named-as-default-member": "off" } } diff --git a/docs/API/hooks.mdx b/docs/API/hooks.mdx index 6cc4705bef..57a9b51dd3 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 diff --git a/packages/fiber/CHANGELOG.md b/packages/fiber/CHANGELOG.md index bf4bf4ad09..c48c0d5332 100644 --- a/packages/fiber/CHANGELOG.md +++ b/packages/fiber/CHANGELOG.md @@ -1,5 +1,11 @@ # @react-three/fiber +## 8.14.3 + +### Patch Changes + +- d77b0990: fix(native): drop fsstat for react-native-web + ## 8.14.2 ### Patch Changes diff --git a/packages/fiber/src/native/polyfills.ts b/packages/fiber/src/native/polyfills.ts index a3dab1924d..76e3550a85 100644 --- a/packages/fiber/src/native/polyfills.ts +++ b/packages/fiber/src/native/polyfills.ts @@ -67,8 +67,7 @@ export function polyfills() { // Unpack assets in Android Release Mode if (!uri.includes(':')) { const file = `${fs.cacheDirectory}ExponentAsset-${asset.hash}.${asset.type}` - const stats = await fs.getInfoAsync(file, { size: false }) - if (!stats.exists) await fs.copyAsync({ from: uri, to: file }) + await fs.copyAsync({ from: uri, to: file }) uri = file }