Skip to content

Blazor doesn't always dispose the circuit's DI scope #11848

Closed
@SteveSandersonMS

Description

@SteveSandersonMS

From #11791

  • In CircuitHost.DisposeAsync, use try/finally to guarantee _scope.Dispose still happens even if any of OnConnectionDownAsync/OnCircuitDownAsync/Renderer.Dispose throws
  • In CircuitPrerenderer.PrerenderComponentAsync, use try/finally to call CleanupCircuitState if prerendering throws

Metadata

Metadata

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions