margelo/react-native-filament

No Error Handling - UseModel()

Opened this issue · 0 comments

Error is Not handled in UseModel Hook..
UseModel hook is returning --
type FilamentModel =
| {
state: 'loaded'
asset: FilamentAsset
boundingBox: AABB
/**
* The root entity of the model.
*/
rootEntity: Entity
}
| {
state: 'loading'
}

but in case of Error state is not Changing , It is Still in Loading state in case of Error