Skip to content

Commit

Permalink
fix: Add missing </UseLoader> closing tag. (#881)
Browse files Browse the repository at this point in the history
* fix: Add missing </UseLoader> closing tag.

* fix: Add missing template tags for UseLoader example.

---------

Co-authored-by: Alvaro Saburido <[email protected]>
  • Loading branch information
3m1n3nc3 and alvarosabu authored Dec 16, 2024
1 parent dae5420 commit e16ea32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/api/composables.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,13 @@ import { UseLoader } from '@tresjs/core'
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader'
</script>
<Suspense>
<UseLoader v-slot="{ data }" :loader="GLTFLoader" url="path/to/asset.gltf">
<template>
<Suspense>
<UseLoader v-slot="{ data }" :loader="GLTFLoader" url="path/to/asset.gltf">
<primitive :object="data.scene" />
</Suspense>
</UseLoader>
</Suspense>
</template>
```

### Props
Expand Down

0 comments on commit e16ea32

Please sign in to comment.