mscharley/dot

Child containers should inherit configuration from their parent

Closed this issue · 0 comments

Describe the bug.

Child containers don't inherit any configuration from their parents, but it would be useful if they did, especially for things like logging options.

Steps to reproduce

const c = createContainer({ logger: console });
const c2 = c.createChild();
c2.get(SomeToken) // No logs from this call.

Expected behaviour

No response

IOC-Deco

1.2.9

TypeScript

5.2.2

Decorator type

Typescript Experimental

Node

No response

Add any other context about the problem here.

No response