Replies: 1 comment 1 reply
-
Only the "factory" is permanent (the function that creates instances of that class) and not the instance itself. Furthermore, GetWidget removes the controller from memory as soon as the widget leaves the tree. However, be aware that this API has undergone profound changes in V5, and probably if you use it, you will have to refactor your code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are many usage examples for Get.create(). In particular, there are examples that are frequently used with ListView and GetWidget, and you may have seen examples of initializing the controller in each Item using Get.find().
However, Get.create() is permanent by default. How should I manage memory? Do you explicitly delete it based on things like life cycle? Or will it be automatically gc if not used?
Beta Was this translation helpful? Give feedback.
All reactions