DialogService.OpenAsync not opening in Radzen V5

I started having issues recently with the DialogService not opening dialogs. I can't say for sure if it is after updating to Radzen v5 since I did that a couple of days before and it worked fine still. I went through the getting started several times to make sure that everything is in order.

In the App.razor i set the RadzenTheme and the script tag last.


In my dependency setup I add the components
image

And in my MainLayout I add the RadzenComponents:

Despite all this, in my MainLayout, when I try to open a DialogService.OpenAsync, the component never shows up, and the page is stuck in a loading state.

Here I try to open a Confirm dialog just to make sure that it's not my child content that causes issues. It is not, and in this case the DialogService.Confirm, executes and leaves the page in a loading state.

Any suggestions what is missing?

Ah I see the issue now. For anyone else might be usefull to remember. The RadzenDialog in MainLayout needs to finish rendering before you can invoke it. Otherwise the service can't open the dialog. In my case, opening the dialogs in an OnAfterRenderAsync seems to solve the issue.