The necessity to expose subcomponent factory method in parent component #66
-
Hi Zac, Currently, we have to expose the subcomponent factory in the parent component (example attached below), but looking at the dagger-generated component ( I think it looks related to this section, but I'm not entirely sure what will be the next step, will Anvil take care of this factory exposure, or it's necessary to declare it in code? Thank you 🙏 Replicate the issue here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This seems to be working as intended? In your replication branch, you removed the contributed interface that dagger needs to see it no? The code you linked first is not dagger-generated code so I'm not sure I follow. |
Beta Was this translation helpful? Give feedback.
it doesn't have to be a factory, it can be the subcomponent itself too. It was always required in some form, how else would you know what to access to retrieve an instance?