Skip to content

ios m.leaks #250

Open
Open
@aplha98

Description

@aplha98

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions