Skip to content

Commit a0e535d

Browse files
committed
fix: correct scoped service layer pattern guidance
- Update scoped-service-layer.mdx to use Effect.Service's scoped property instead of incorrectly suggesting Layer.scoped - Fix summary and rule description to reflect correct pattern - Example code remains unchanged as it was already showing proper usage Note: This is an important fix as it guides users to the proper way of creating service layers around managed resources in Effect.
1 parent f4fa0b5 commit a0e535d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/published/scoped-service-layer.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ title: "Create a Service Layer from a Managed Resource"
33
id: "scoped-service-layer"
44
skillLevel: "intermediate"
55
useCase: ["Resource Management", "Dependency Injection", "Application Architecture"]
6-
summary: "Use `Layer.scoped` with `Effect.Service` to transform a managed resource into a shareable, application-wide service."
6+
summary: "Use the `scoped` property of Effect.Service to transform a managed resource into a shareable, application-wide service."
77
tags: ["resource", "layer", "scope", "service", "dependency-injection", "context", "acquire-release"]
88
rule:
9-
description: "Provide a managed resource to the application context using `Layer.scoped`."
9+
description: "Provide a managed resource to the application context using the `scoped` property of Effect.Service."
1010
related: ["acquire-release-bracket"]
1111
author: "PaulJPhilp"
1212
---

0 commit comments

Comments
 (0)