@webspatial/react-sdk 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3271,6 +3271,15 @@ function ModelBase(inProps, ref) {
3271
3271
  if (!modelViewerExists) {
3272
3272
  return;
3273
3273
  }
3274
+ myModelViewer.current.addEventListener("error", (event) => {
3275
+ if (event.detail.type == "loadfailure") {
3276
+ if (props2.onLoad) {
3277
+ props2.onLoad({
3278
+ target: { ready: false, currentSrc: gltfSourceURL }
3279
+ });
3280
+ }
3281
+ }
3282
+ });
3274
3283
  myModelViewer.current.addEventListener("load", (event) => {
3275
3284
  if (props2.onLoad) {
3276
3285
  props2.onLoad({