Problem when using RenderFragment
Leo Do
10
Reputation points
Hi,
I would like some help. I have List of RenderFragments which I am using to show various data in my Blazor component. I am trying to add functionality to delete one element of the list on click of the button. After simple List.RemoveAt method wasn't working as expected I tried to delete whole list and repopulate it with RenderFragments but then component's OnInitializedAsync() method is not invoked. Am I correct in understanding that RenderFragment objects are still in the memory and they are just reused. Is there a way to delete them from memory after removing them from the list?
Sign in to answer