Skipped internal
properties on InvokeAsync<T> calls
#42768
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-jsinterop
This issue is related to JSInterop in Blazor
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Describe the bug
The internal properties are getting skipped/ignored on calls to InvokeAsync of JS interop calls.
for example:
you can see the problem in the result of the following line:
It's probably because of the limitations of the STJ (discussed here: dotnet/runtime#31511) or something similar, but to be more clear it is a blocking issue for assemblies that don't want to expose their internal types to the outside world.
Btw, I can bypass this issue by making the type itself Internal and changing the properties access modifier to public.
Expected Behavior
The internal properties should receive their corresponding values from js interop calls.
Steps To Reproduce
you can see this problem in action in this repo:
https://github.com/msynk/blazor-internal-props-skip-invokeasync
it has both Blazor Server and Wasm.
Exceptions (if any)
No response
.NET Version
6.0.302
Anything else?
No response
The text was updated successfully, but these errors were encountered: