-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Can not pass nullable to ViewComponent Invoke method #3211
Comments
@pranavkm can you investigate? |
@pranavkm let me know if you need any help from my side. This is the page where I wanted to add this functionality Thanks, Ritesh |
Thanks for the repro app. https://github.com/aspnet/Mvc/blob/dev/src/Microsoft.AspNet.Mvc.ViewFeatures/ViewComponents/ViewComponentMethodSelector.cs#L82 looks suspect. |
Ok looks like this might be a real bug, moving to RC. |
Yeah, we might need to do something smarter than what we're doing, or provide a richer API for invoking viewcomponents. |
There's a relatively easy for this issue. |
Discussed the bug from #3211 (comment) offline with @rynowak and @Eilon. I'll patch the ability to invoke |
Beta7 Calling a method like:
Generates error
From View as
The text was updated successfully, but these errors were encountered: