-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
After multiple page reloads, memory is allocated (Heap gen0 - Heap gen1 - Heap gen2). Multiple Blazor control instances stay in memory.
Expected Behavior
The number of Blazor component instances remains the same after a page reload.
Steps To Reproduce
-
Add a custom Blazor component to the page;
-
Reload the page several times for memory allocation (Heap gen0 - Heap gen1 - Heap gen2);
-
Make a memory snapshot.
It has 2 or more instances of your custom component:

Exceptions (if any)
No response
.NET Version
6.0
Anything else?
No response
Metadata
Metadata
Assignees
Labels
✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Resolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsquestion
