-
-
Notifications
You must be signed in to change notification settings - Fork 79
Fix issue #836 #839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix issue #836 #839
Conversation
…a ToastService to avoid exceptions ( vikramlearning#836 ).
@Suiram1701 Thank you for the PR. I'll take care of this. |
Can this be merged in the next release? |
Any update with this issue? |
gvreddy04 asked for a minimal repo to reproduce the issue (what I've provided) but didn't respond yet. This issue was also mainly caused by me who didn't understand how at the time how to use async in Blazor. |
@shargon I've read your issue and it has the same source as mine. A Blazor renderer is attached to a specific thread and to modify a component (in this case the Toasts I think) from a different thread you have to use the dispatcher with InvokeAsync. So try to call the toast service through |
ToastService.NotifyAsync(ToastMessage)
suggested by @shargon