diff --git a/src/Aspire.Dashboard/Components/Interactions/InteractionsProvider.cs b/src/Aspire.Dashboard/Components/Interactions/InteractionsProvider.cs index 497d7ef82b7..fd7656b8839 100644 --- a/src/Aspire.Dashboard/Components/Interactions/InteractionsProvider.cs +++ b/src/Aspire.Dashboard/Components/Interactions/InteractionsProvider.cs @@ -118,6 +118,12 @@ protected override void OnInitialized() _watchInteractionsTask = Task.Run(async () => { + // There is a bug in FluentDialogProvider that causes it to error if used immediately because it's still loading its own JavaScript. + // Wait a small amount of time for it to get ready. + // + // TODO: Remove when https://github.com/microsoft/fluentui-blazor/issues/4311 is fixed. + await Task.Delay(TimeSpan.FromSeconds(2)); + try { await WatchInteractionsAsync().ConfigureAwait(false);