@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.
@@ -3286,6 +3286,15 @@ function ModelBase(inProps, ref) {
3286
3286
  if (!modelViewerExists) {
3287
3287
  return;
3288
3288
  }
3289
+ myModelViewer.current.addEventListener("error", (event) => {
3290
+ if (event.detail.type == "loadfailure") {
3291
+ if (props2.onLoad) {
3292
+ props2.onLoad({
3293
+ target: { ready: false, currentSrc: gltfSourceURL }
3294
+ });
3295
+ }
3296
+ }
3297
+ });
3289
3298
  myModelViewer.current.addEventListener("load", (event) => {
3290
3299
  if (props2.onLoad) {
3291
3300
  props2.onLoad({