Skip to content

Commit c5b22d2

Browse files
authored
PCX review
1 parent 5e8f2f8 commit c5b22d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/durable-objects/examples/reference-do-name-using-init.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ description: Access the name from within a Durable Object using RpcTarget.
1212

1313
import { TabItem, Tabs, GlossaryTooltip } from "~/components";
1414

15-
When working with Durable Objects, you'll might need to access the name that was used to create the Durable Object via `idFromName()`. This name is typically a meaningful identifier that represents what the Durable Object is responsible for (like a user ID, room name, or resource identifier).
15+
When working with Durable Objects, you will need to access the name that was used to create the Durable Object via `idFromName()`. This name is typically a meaningful identifier that represents what the Durable Object is responsible for (like a user ID, room name, or resource identifier).
1616

17-
However, there's a limitation in the current implementation: even though you create a Durable Object with `.idFromName(name)`, you cannot directly access this name inside the Durable Object via `this.ctx.id.name`.
17+
However, there is a limitation in the current implementation: even though you create a Durable Object with `.idFromName(name)`, you cannot directly access this name inside the Durable Object via `this.ctx.id.name`.
1818

1919
The `RpcTarget` pattern shown below offers a solution by creating a communication layer that automatically carries the name with each method call. This keeps your API clean while ensuring the Durable Object has access to its own name.
2020

0 commit comments

Comments
 (0)