Skip to content

Commit c59c3e1

Browse files
committed
fix: container 存储 pool
1 parent de09734 commit c59c3e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/ioc/src/inject.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ export const Inject =
5454
pool = new Container<PropertyKey, unknown>()
5555
}
5656
pool.bind(propertyKey, value)
57+
poolContainer.bind(target, pool)
5758
})
5859
}

packages/ioc/src/middleware/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const propertyMiddleware =
4444
pool = new Container<PropertyKey, unknown>()
4545
}
4646
pool.bind(propertyKey, middleware)
47+
poolContainer.bind(target, pool)
4748
})
4849
}
4950

0 commit comments

Comments
 (0)