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

blazor List passed as paramater to child component doesnt change

$
0
0

I've been experiencing some issues with Blazor component parameters. To put it briefly, I have a list in the parent component along with a button. Every time I click the button, an item gets added to the list, which triggers a for loop in the HTML section. This for loop creates child components, and for each child component, I pass the current list as a parameter. However, the main issue is that the child component only receives the version of the list that was passed to them at the moment of creation. Any changes made to the list after that are ignored. If anyone has a solution, please do tell.

enter image description here

i am not on my main PC this is just a short example for you to understand


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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