bUnit icon indicating copy to clipboard operation
bUnit copied to clipboard

Investigate using Renderer.RemoveRootComponent for disposing components

Open egil opened this issue 2 years ago • 0 comments

While investigating another issue I noticed the method RemoveRootComponent in the Renderer source code (https://source.dot.net/#Microsoft.AspNetCore.Components/RenderTree/Renderer.cs,260). Its in .net 6 and later, and it seems to basically do a lot of what we want wrt. to disposing of a component under test, and could allow for more targeted disposable instead of every single rendered component as now.

egil avatar May 19 '22 23:05 egil