microsoft / microsoft/tsyringe
ChildContainer question
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6k
- Forks
- 184
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Hi all,
I'm using child containers to implement per-request dependency resolution for my Lambda function. I plan to create a new child container for each request and use it to resolve my dependencies (I do have dependencies that carry request data). Is this the intention behind the concept of child containers? If so, do I need to worry about disposing child containers after each request? Also, when calling container.clearInstances on a child container, does it also clear instances registered and resolved through the root container?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue mentions child containers, per-request dependency resolution, disposal, and clearInstances, but names no files, tests, or entry points. Start by locating the child-container implementation and its documentation, then establish whether the intended lifecycle and instance-clearing behavior are documented; done means the questions have an authoritative answer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100