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
{{ message }}
This repository was archived by the owner on Jan 25, 2021. It is now read-only.
When I think of a factory in JavaScript, I think of a function, not an object with a .get() method. This becomes particularly inconvenient when trying to pass factories around.
For example, when moving to Intravenous, my code went from
I think the solution would be to just make factories into functions. They can still have .get, .use, .dispose, and the like, but calling the factory as a function should have the same result as calling .get.
When I think of a factory in JavaScript, I think of a function, not an object with a
.get()method. This becomes particularly inconvenient when trying to pass factories around.For example, when moving to Intravenous, my code went from
to
I think the solution would be to just make factories into functions. They can still have
.get,.use,.dispose, and the like, but calling the factory as a function should have the same result as calling.get.