uber/needle

Dynamic dependency usage

sidjeyz opened this issue · 0 comments

Hi everyone

We are struggling with "correct" usage of dynamic dependencies.

Example case:

We have list of todos (root controller aka component), on item tap we should present detail todo controller (component)

The question:

Should we store root component in root controller to call function of dynamic dependency, called i.e:

func detailTodo(item: ToDo) -> DetailToDoBuilder

or we should go another way?