Closed chrisbanes closed 2 months ago
Ignore me. I missed the doc which says:
Parameters on the factory function are forwarded to the generated component and bound in the component
The processor should check for this scenario and give you a better error message. That's a bug.
There's probably another bug here, in that only interfaces are allowed for ContributesSubcomponent
s?
Use there a good use case for an abstract class when the constructor parameters you had are provided through the factory?
There probably isn't one, but it's worth documenting and/or throwing a better error in those instances?
For sure!
See the following example:
This fails to compile with the error due to
No value passed for parameter 'profileId'
. The generated code is: