Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How can i see which code is setting my components parameter property

$
0
0

I've a general question concerning the parameters setting lifecycle for a Blazor component.

I've made a ordinary two way binding on my component.When I tested out this binding, it first seemed that nothing happens on changing the parameter value. But during debbung i noticed that indeed all binding steps are completed successfully. The bound parameter has a correct value on the parent component and the child component.

Now the strange thing comes in.I did not run the debugger to the end. I only stepped forward and saw that the property of the child component is set again with the original value.So I browsed my whole repository for the trigger of the setter. Now I decided to override the SetParameterAsync Method on my child component. Then I saw a frame which sets my property with the old value.

And now my question. Does anybody know a way to figure out which code or component sets the property.Do I have any object where I can watch the initiator of the parameter set operation?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>