Skip to content

Commit deab2a7

Browse files
authored
feat: add 'font' to supported asset types in use-asset hook (#269)
* feat: add 'font' to supported asset types in use-asset hook * fix: ensure font compatibility with use-asset hook
1 parent 1ef88e6 commit deab2a7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/early-waves-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@playcanvas/react": patch
3+
---
4+
5+
Fix ensures font works with use asset hook

packages/lib/src/hooks/use-asset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dracoInitialize({
1515
/**
1616
* Supported asset types that can be loaded
1717
*/
18-
const supportedTypes = ['texture', 'gsplat', 'container', 'model'];
18+
const supportedTypes = ['texture', 'gsplat', 'container', 'model', 'font'];
1919

2020
type AssetResultCallback = (meta: AssetMeta) => void;
2121

0 commit comments

Comments
 (0)