Closed patrickhulce closed 7 years ago
Nice! 👍
@jaredhanson, is this going to be merged? released?
@jaredhanson any feedback and/or thoughts on this, positive or negative?
@patrickhulce I pulled your changes into a local branch, promises
here: https://github.com/jaredhanson/electrolyte/tree/promises
The only thing I wasn't to fond of, was that the async and sync paths were different, and it wasn't clear at all as a developer using the IoC container, if a dependency was going to be async or not. For example, lets say you had a component that was sync today, and then tomorrow took an async dependency. When updating, you could no longer IoC.create
that dependency, and had to switch to IoC.createAsync
.
I do like the ability to create components asynchronously. It seems like the best approach is to simply make that the default. That's what I've done in the branch above. It is stable, I just need to review test coverage.
If you want to pull my branch, look it over, and then update any tests and documentation, I would really appreciate it. This will be released as electrolyte@0.4.0
.
Thanks for your PR!
Is this still relevant?
@FWoelffel no the core functionality has since been merged to master 🎉 I'll close.
Usage
Define an Async Module
Use an Async Module
Depend on an Async Module