I'm encountering an issue with the Telerik Notification component in my Blazor Server. The problem arises when I attempt to display a notification from a function that is not on the same thread as the component. In such cases, the notification item doesn't render in the UI.
To address this, I've made a modification to my component by replacing StateHasChanged
with InvokeAsync(StateHasChanged)
to ensure thread safety during invocation.
I'd like to seek input to determine whether this is a bug in the Telerik component or if there's a better approach to solving this issue. Any advice or suggestions would be greatly appreciated. Thank you!
USE:::
BEFORE:::
AFTER FIX::::