You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In my application, jetbrains dotMemory report a leak by fluent validation. I'm not sure if FluentValidator is the only cause, but I see that it subscribes to EditContext OnValidationRequested and OnFieldChanged and it doesn't unsubscribe on component dispose.
To Reproduce
Use the application wich use fluent validation with an EditContext
Expected behavior
Expect all resources freed
Hosting Model (is this issue happening with a certain hosting model?):
Blazor Server
Additional context
FluentValidationValidator version 2.1.0
The text was updated successfully, but these errors were encountered:
This was causing me issues this week. To make a long story short I was holding onto an EditContext to preserve the state of specific form. When the EditForm and subsequent FluentValidationValidator were removed from the UI and a new one was put in it's place a second (or third, or fourth...) instance of the FluentValidationValidator would attach itself to my EditContext and I would end up with error message duplication on form submit.
Describe the bug
In my application, jetbrains dotMemory report a leak by fluent validation. I'm not sure if FluentValidator is the only cause, but I see that it subscribes to EditContext OnValidationRequested and OnFieldChanged and it doesn't unsubscribe on component dispose.
To Reproduce
Use the application wich use fluent validation with an EditContext
Expected behavior
Expect all resources freed
Hosting Model (is this issue happening with a certain hosting model?):
Additional context
FluentValidationValidator version 2.1.0
The text was updated successfully, but these errors were encountered: