I haven't tried this outside of local, but based on the documentation I was expecting `this.ctx.id.n

I haven't tried this outside of local, but based on the documentation I was expecting
this.ctx.id.name
to return me the string used when calling
const stub = env.MY_DO.idFromName('foo')
- it works fine if I try it on the stub (e.g.
stub.name
), but it doesn't work inside the DO itself if I try
this.ctx.id.name
- it's undefined. The ID itself is there, but considering the type is of
DurableObjectId
I expected to be able to get the name too - is this not the case?
Was this page helpful?