Skip to content
Discussion options

You must be logged in to vote

Hi @rhysm94, I'd be curious how this looked in the pre-@Dependency world. If a dependency failed to initialize did you just not create an environment, and hence not create the root store for your application?

I think in both pre- and post-@Dependency it is best to think of dependencies as a thing that lives forever in the application. It has no lifecycle as a top-level concept and as such as no ability to fail to initialize.

Instead, any notions of lifecycle and failability should be baked into the internals of the dependency rather than the creation of the dependency. For example, a location manager forever lives in the application, even if you haven't started it or are listening for loc…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rhysm94
Comment options

You must be logged in to vote
2 replies
@Alex293
Comment options

@rhysm94
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants