Skip to content

Commit

Permalink
Merge pull request #10 from isoteriksoftware/dev
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
isoteriksoftware authored Jun 4, 2024
2 parents 5fc4312 + 1c3f859 commit ead2cdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ This allows you to customize the appearance of the gallery item.
By default, the `material` is automatically disposed when the component is unmounted.
You can disable this behavior by setting the `disableAutoDispose` prop to `true`.

**Be careful when sharing materials between gallery items.
If you want to reuse a material, consider setting the `disableAutoDispose` prop to `true` to prevent the material from being disposed when one of the items is unmounted.**

#### Props
```tsx
type GalleryItemProps = MeshProps & {
Expand Down

0 comments on commit ead2cdf

Please sign in to comment.