Skip to content

When I must close scope? #425

@JorikFat

Description

@JorikFat

I dont use ViewModel, and want to handle lifecycle by TP.
I have Activity and complex model with inner state(i can't save it in Bundle)

  • If I open scope by Instance of Activity - it will be closed on onDestroy()[by smoothie].
  • If I open scope by constString - i need to close scope manualy.

Which way is correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions