Replies: 2 comments
-
I also have this question. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say you create a hierarchy like:
Then you want to discard of those elements. You can go:
To fully dismantle the hierarchy. But then how do you make those elements get destroyed/disposed of in the native system? Does Maui have some way of saying: "This element is no longer needed and can be garbage collected"?
Or do we need a custom native way of handling this in each OS?
Otherwise, every element you create will keep taking up memory after it's no longer needed.
For reference, I am not using any standard NavigationStack or any of that stuff. I am just building my own hierarchies as needed from basic elements. The only things I use are Label, AbsoluteLayout, Border, Image, & Editor.
Any thoughts? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions