Blazor list passed as parameter to child component doesn’t change
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.
blazor List passed as paramater to child component doesnt change
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.