Workarounds for @inherits Page<TModel> are causing spooky issues #8193
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
Milestone
There is some WIERD stuff going on with using the type object in components.
I suspect this is due to one of the various workarounds that's in place to allow you to write @inherits Foo in _ViewImports.cshtml without a compiler error. I've never understood what's being done for this case and why it's the right solution - and I guess it's time for me to dig into this area.
This is breaking components and my heart. This is in the generated code.
There's no
TModel
in this class, the dictionary is defined asDictionary<object, ValidationMessageStore>
.The text was updated successfully, but these errors were encountered: