Skip to content

Clarification that 'fetch' is not recommended #24649

@chris-martin

Description

@chris-martin

Existing documentation URL(s)

What changes are you suggesting?

Best practices recommends against calling fetch on a Durable Object class. I was surprised to then see fetch as the first method listed on the DurableObject API documentation. The two pages seem to contradict one another, and this makes me question my understanding (for context, I have started reading about durable objects only just yesterday); I would have expected fetch to be listed last in the API doc and to include a note of discouragement similar to what the best practices page recommends.

Additional information

No response

Metadata

Metadata

Labels

content:editRequest for content editsdocumentationDocumentation editsproduct:durable-objectsDurable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions