wzhudev / redi

💉 A dependency injection library for TypeScript & JavaScript, along with a binding for React.
https://redi.wzhu.dev
MIT License
110 stars 17 forks source link

异步依赖项的设计是如何考虑的呢 #30

Closed hehos closed 2 weeks ago

hehos commented 3 months ago
image

这样的设计是处于什么考虑呢?为什么要这样加上一个标识呢?

image

为什么不这样直接一点呢?

wzhudev commented 2 weeks ago

你给的代码案例似乎并不完整,没看出来如何调用方应该如何消费这个 BBLoader1