|
@@ -194,10 +194,10 @@ import { useTexture } from '@tresjs/core'
|
|
import { useTexture } from '@tresjs/cientos'
|
|
import { useTexture } from '@tresjs/cientos'
|
|
```
|
|
```
|
|
|
|
|
|
-3. **Usage remains the same**:
|
|
|
|
|
|
+3. **Usage updated**:
|
|
```js
|
|
```js
|
|
-// ✅ Same usage pattern
|
|
|
|
-const texture = await useTexture('/textures/brick.jpg')
|
|
|
|
|
|
+// ✅ Composable now returns reactive state with loading state
|
|
|
|
+const { state: texture, isLoading } = useTexture('/textures/brick.jpg')
|
|
```
|
|
```
|
|
|
|
|
|
### Event System Changes
|
|
### Event System Changes
|