diff --git a/src/components/StoreBuilder.ts b/src/components/StoreBuilder.ts index 14f8446dc6..6e8378c4fb 100644 --- a/src/components/StoreBuilder.ts +++ b/src/components/StoreBuilder.ts @@ -48,6 +48,9 @@ export function StoreBuilder(props: StoreBuilderProps) { const resolved = await loadAndBundleSpec(spec || specUrl!); setResolvedSpec(resolved); } catch (e) { + if (onLoaded) { + onLoaded(e); + } setError(e); throw e; }