-
Notifications
You must be signed in to change notification settings - Fork 115
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
When I must close scope? #425
Comments
This is probably highly dependent on your own use-case. When you call Toothpick doesn't care if you pass an activity or a string to the Smoothie lifecycle utility has the same effect as calling Now, where you Remember that That's why p.s. Toothpick exists to enforce a proper DI pattern, with proper constructors, to better organize code, make dependencies clear, make the code easier to test. Toothpick is not a data storage solution :) If you want data to surive, find a way to store data in a |
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)
Instance of Activity
- it will be closed ononDestroy()
[by smoothie].constString
- i need to close scope manualy.Which way is correct?
The text was updated successfully, but these errors were encountered: