Relative Content

Tag Archive for c#blazordisposesyncfusionidisposable

Dispose not called on child components in Blazor

I have a parent component that implements IDisposable, where I have a child component called MyGrid. Now MyGrid extends Syncfusion’s SfGrid which itself implements IDisposable. When I close the parent component its Dispose method is called but the method Dispose inside MyGrid isn’t called. Is it normal ? I thought Dispose had like a chain effect. Should I explicitly call Dispose on MyGrid (after getting a reference to it)?