-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
-
[问题描述]
ayanami constructor里面注入value会导致依赖报错 -
[复现步骤]
- useAyanami时指定scope
- 在Injectable provide一个value,通过@Inject注入ayanami对象
-
[版本]
ayanami@0.16.0-10之后的版本都能复现 -
[codesandbox]
https://codesandbox.io/s/ayanamiminimal-example-u1cto -
[问题源码]
ayanami/src/core/scope/utils.ts
Line 40 in c601a84
const newInstance = new constructor(...deps)
没有对Inject value的情况做处理
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working