Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios m.leaks #250

Open
aplha98 opened this issue Aug 21, 2023 · 1 comment
Open

ios m.leaks #250

aplha98 opened this issue Aug 21, 2023 · 1 comment

Comments

@aplha98
Copy link

aplha98 commented Aug 21, 2023

hello, plz help me
I am using cflowState , cflow extension, the issue I have a lot of memory leaks on IOS,
on IOS
In the viewModels

 func releaseDisposableHandle(){
        disposableHandle.dispose()
    }
    

in the swiftui view

Vstack{}
            .onDisappear {
            vm.releaseDisposableHandle()
            }

let us say I have screens
A -> B -> C
I did not want to dispose of B until C is disappear, sometimes the user go to C and back to B , how to manage the scope of VM life
does DisposableHandle work?

@Alex009
Copy link
Member

Alex009 commented Aug 21, 2023

hi.
what is disposableHandle in your code?

also, are you use weak references in lambda on swift side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants