You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using AsyncRequestMessage in MAUI, I have added a button in the group header of the CollectionView, clicking on the button sends an AsyncRequestMessage but sometimes it raises an exception System.InvalidOperationException: 'No response was received for the given request message.' What I mean is that I may click on the button 1, 2, 5 ... times and it will be fine, but maybe it will raise this exception.
// at ContentPage ctor:WeakReferenceMessenger.Default.Register<MyContentPage,DisplayActionSheetAsyncRequestMessage>(this,(r,m)=>m.Reply(r.DisplayActionSheet(m.Title,m.Cancel,m.Destruction,m.Buttons)));
Expected behavior
It's always normal. It's not raise System.InvalidOperationException: No response was received for the given async request message
Screenshots
No response
IDE and version
VS 2022
IDE version
17.10.3
Nuget packages
CommunityToolkit.Common
CommunityToolkit.Diagnostics
CommunityToolkit.HighPerformance
CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.2.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered:
Can you try changing this to WeakReferenceMessenger.Default here ?
// at ContentPage ctor:WeakReferenceMessenger.Default.Register<MyContentPage,DisplayActionSheetAsyncRequestMessage>(WeakReferenceMessenger.Default,(r,m)=>m.Reply(r.DisplayActionSheet(m.Title,m.Cancel,m.Destruction,m.Buttons)));
Describe the bug
I am using AsyncRequestMessage in MAUI, I have added a button in the group header of the CollectionView, clicking on the button sends an AsyncRequestMessage but sometimes it raises an exception System.InvalidOperationException: 'No response was received for the given request message.' What I mean is that I may click on the button 1, 2, 5 ... times and it will be fine, but maybe it will raise this exception.
Regression
No response
Steps to reproduce
AsyncRequestMessage
Sender
Receiver
Expected behavior
It's always normal. It's not raise System.InvalidOperationException: No response was received for the given async request message
Screenshots
No response
IDE and version
VS 2022
IDE version
17.10.3
Nuget packages
Nuget package version(s)
8.2.2
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item
The text was updated successfully, but these errors were encountered: