so anyone trying to fix this well known long-term bug?
so anyone trying to fix this well known long-term bug?
.name propertysetIdentifier every time they "get" an Actor instance (which is a Durable Object) and refer to this.identifier rather than try to parse the name out of the id. It's very little code and works the same in dev and production.I'm basically using all RPC calls I thinkI hear people say this and I always wonder how users enter the system? It's got to be HTTP or WebSockets, no?
firstDO.withIdentifier('user:123').index()fetch() method for handling the websockets.fetch () and routing it that wayBindDurableObjectMiddleware is what sets the DO to c.var.notifications
script_name option for local dev, the generated binding lacks a type parameter, usually provided to the namespace generic, ie.sendBatch, etc), what should happen? Should it just deadlock/timeout?If I have a transaction going on with SQLiteWhat do you mean by this? How do you have it going? Is it an implicit transaction, or do you use the
transaction()/transactionSync() functions?transaction()/transactionSync()ack it later..namesetIdentifierthis.identifierfirstDO.withIdentifier('user:123').index()fetch ()BindDurableObjectMiddlewarec.var.notificationsscript_nameDOSTORE: DurableObjectNamespace /* DurableObjectStore from durables */;DOSTORE: DurableObjectNamespace<import("../.svelte-kit/cloudflare/_worker").DurableObjectStore>;sendBatchtransaction()/transactionSync()transaction()/transactionSync()ack {
"tag": "v3",
"deleted_classes": [
"UserCreditsObject"
],
"new_sqlite_classes": [
"UserCreditsObject"
]
}app.get("/:id", HonoAuthMiddleware, BindDurableObjectMiddleware, async (c) => {
const id = c.req.param("id");
const notification = await c.var.notifications.get(id);
if (!notification) return c.body(null, 204);
return c.json(notification);
});