Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Question: Meaning of Destroyed #36

Open
yschimke opened this issue Nov 9, 2021 · 0 comments
Open

Question: Meaning of Destroyed #36

yschimke opened this issue Nov 9, 2021 · 0 comments

Comments

@yschimke
Copy link

yschimke commented Nov 9, 2021

https://dagger.dev/hilt/components.html

It bounds the lifetime of scoped bindings between when the component is created and when it is destroyed.

Curious if there is some documentation for what happens when a component is destroyed? Is it released and garbage collected, or is there some lifecycle hooks you can subscribe to in a Module to cleanup?

I'm assuming not, but wanted to confirm because the specific use of Destroyed in docs, suggests something more.

Similar to this question https://stackoverflow.com/questions/65741883/hilt-when-does-object-gets-destroyed-provided-in-applicationcomponent

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

No branches or pull requests

1 participant