MudBlazor.BrowserViewportService - DisposeAsync when using Azure Feature Flags #8850
Replies: 1 comment
-
Yes, they are related.
You can implement own |
Beta Was this translation helpful? Give feedback.
-
Yes, they are related.
You can implement own |
Beta Was this translation helpful? Give feedback.
-
I have an implemented Blazor App using Mud Blazor, and am implementing Feature Flags, based on Azure App Configuration. This works and I can get the Features. I am following this example to be able to create a custom component to enable/disable Components/Menu Items based on a Component (Similar to Built in ASP.NET Core Features).
https://dev.to/kasuken/how-to-use-feature-flags-in-a-blazor-application-1ni6
But implementing this causes the following error:
System.InvalidOperationException: 'MudBlazor.BrowserViewportService' type only implements IAsyncDisposable. Use DisposeAsync to dispose the container.
I am wondering if this is a similar issue from the discussion here:
#7879
I can't control the MudBlazor.BrowserViewportService so I don't know how to get around this.
FYI, in my Razor Component, I can get the Feature Flag, and use an @if then with a model variable and that works, but it is not as elegant as a component attribute.
Home @if (_COUNTER_FEATURE) { Counter } WeatherThanks,
Tom
Beta Was this translation helpful? Give feedback.
All reactions