-
Notifications
You must be signed in to change notification settings - Fork 10.3k
EventCallback<T> Error cannot convert from 'method group' to 'EventCallback' #10077
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
Comments
shouldn't you use async before () => OnSelect.InvokeAsync(item) ? |
Using async and Task does not change anything - the error remains. The only way I am able to make it work is by doing the following in the Parent component event handler :
instead of :
Seems kind of strange to me that it would need to be done that way though. |
@drinkwater99 You're seeing this error because of generics(typeparam) with EventCallback, It's not supported yet. |
This has been added in preview 7 - #10730 |
Hey I have Installed Preview 7 but I still get this error, shouldn't this be fixed? |
Describe the bug
Using the following two components, the compiler emits an error in the Parent component in the OnSelect event parameter.
Error cannot convert from 'method group' to 'EventCallback'
Is this an issue or I am doing this wrong ?
To Reproduce
The text was updated successfully, but these errors were encountered: