Replies: 1 comment
-
I think that What you could do is add a separate "constructor" that returns
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Take the following example, which will fail
The above will fail with
If I update
main
tothen the constructor gets called twice.
Instantiating
Obj
outside fx and then usingSupply
would likely work in this simple example, but I wouldn't be able to leverage DI itself.Is this even possible?
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions