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
ValueStore keeps DataContext referenced view models when Botton Click event is handled which causes memory leaks.
The issue is that IsPressed property is set during click handling on the button. When user click button and for example its back navigation the view model references are still kept in ValueStore causes by setting IsPressed property inside a button.
I think this issue is also happening in other places in Avalonia.
To Reproduce
Execute click event on Button and navigate back from view, the references captured by ValueStore / IsPressedProperty changes.
Expected behavior
No memory leaks caused by ValueStore.
Avalonia version
11.0.10, master
OS
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
ValueStore keeps DataContext referenced view models when Botton Click event is handled which causes memory leaks.
The issue is that IsPressed property is set during click handling on the button. When user click button and for example its back navigation the view model references are still kept in ValueStore causes by setting IsPressed property inside a button.
I think this issue is also happening in other places in Avalonia.
To Reproduce
Execute click event on Button and navigate back from view, the references captured by ValueStore / IsPressedProperty changes.
Expected behavior
No memory leaks caused by ValueStore.
Avalonia version
11.0.10, master
OS
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: