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 like a way to use a function to create a singleton. From what I understand from the documentation factories and providers return an instance, but said instance itself is not a singleton unless you do it in another way. Something like
I'd like a way to use a function to create a singleton. From what I understand from the documentation factories and providers return an instance, but said instance itself is not a singleton unless you do it in another way. Something like
would be super useful as sometimes there's stuff you want from the container in a function to create the object.
Obviously you can do some complex logic to do this in a factory, where you check if the value exists in the container, or bind it.
every DI system I've used can do this except, from what I can tell, this one.
The text was updated successfully, but these errors were encountered: