✅ Solved: Understanding Layer Merging in Effect Typescript
I've spent literally 2 hours to figure out that while this doesn't work:
This does:
And I still don't fully understand why.
This does:
And I still don't fully understand why.
const layer = Layer.mergeAll(
NodeContext.layer,
ParserHelpers.Live,
Builder.Live
)const layer = Layer.provideMerge(
Builder.Live,
Layer.mergeAll(NodeContext.layer, ParserHelpers.Live)
)