You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd want to do this so that I can have Module A be abstract and provide some useful HOCs, while allowing Module B to pull in some of these influences.
I've tried registering WithMyOpinion with Injector and loading it in Module B before applying it as a transformation, but the DI layer hasn't been initialised yet so it fails.
Two options I can see:
We allow the second argument of updater.component() to accept a string, which would lazily load in a similar way to %$MyServiceName in PHP Injector (note that I have no idea if this would actually work)
Add another part of Injector that allows for service definitions. This part may not allow transformations in order for it to be loaded before the rest of the DI layer so they can be used themselves to transform other components.
Workaround: Module A has coupling, and applies its HOC to every module it knows about, since it can load its HOC via FS imports instead of through injector.
The text was updated successfully, but these errors were encountered:
My situation:
I'd want to do this so that I can have Module A be abstract and provide some useful HOCs, while allowing Module B to pull in some of these influences.
I've tried registering WithMyOpinion with Injector and loading it in Module B before applying it as a transformation, but the DI layer hasn't been initialised yet so it fails.
Two options I can see:
updater.component()
to accept a string, which would lazily load in a similar way to%$MyServiceName
in PHP Injector (note that I have no idea if this would actually work)cc @unclecheese
Workaround: Module A has coupling, and applies its HOC to every module it knows about, since it can load its HOC via FS imports instead of through injector.
The text was updated successfully, but these errors were encountered: