Move NewMarkupLoad to when markup is completely loaded

This commit is contained in:
Yoshi Askharoun
2024-01-31 23:45:04 -06:00
parent c4e5af3e9c
commit e9859b350a
+2 -2
View File
@@ -92,6 +92,8 @@ namespace Microsoft.Iris.Markup
loadResult.Load(LoadPass.PopulatePublicModel);
loadResult.Load(LoadPass.Full);
loadResult.Load(LoadPass.Done);
NewMarkupLoaded?.Invoke(null, loadResult);
}
ErrorManager.ExitContext();
return loadResult;
@@ -137,8 +139,6 @@ namespace Microsoft.Iris.Markup
if (loadResult.UnderlyingUri != null)
LoadResultCache.Write(loadResult.UnderlyingUri, loadResult);
}
NewMarkupLoaded?.Invoke(null, loadResult);
}
loadResult?.AddReference(islandId);
ErrorManager.ExitContext();