Replies: 2 comments 5 replies
-
When a component is detached from the logical/visual tree effects get disposed. You can create an effect and return an |
Beta Was this translation helpful? Give feedback.
2 replies
-
Just not visible, but could be both: behaviour is the same: even if not part of the visual tree: it is not disposed and the subscriptions are still being received, but let's assume it's just not visible and not focused: so? How can I detect that?
…On 11 Jan 2024 at 21:23 +0100, Josua Jäger ***@***.***>, wrote:
Is the component just not visible to the user anymore (component is located in a not selected tab) or is it not part of the UI anymore?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Community, I am facing a lifetime issue with FuncUI, and the lifetime section in the docs doesn't really help.
My problem is that I need to use a barcode reader sending Reactive notification for different events through the COM port.
It does work but the problem is that without knowing when a specific component goes out of visibility and/or focus I cannot dispose the subscription or try to ignore the event...
Which means all my barcode enabled components keep reacting in the background while waiting to be garbage collected...
I really need something corresponding to onAppear and onDisappear methods of SwiftUI! :-(
Beta Was this translation helpful? Give feedback.
All reactions