brett
02/09/2023, 10:15 PMidFromName("kody") == 1234foobar
forever)brett
02/09/2023, 10:26 PMSkye
02/09/2023, 10:30 PMSkye
02/09/2023, 10:31 PMweide
02/09/2023, 10:39 PMbrett
02/09/2023, 10:41 PMdeleteAll()
within an object and it succeeds, there's no storage left to bill forbrett
02/09/2023, 10:41 PMjohtso
02/10/2023, 12:04 AMjohtso
02/10/2023, 12:10 AMfrankichiro
02/10/2023, 6:53 AMHardAtWork
02/10/2023, 6:53 AMzehawk
02/10/2023, 8:40 AMfrankichiro
02/10/2023, 9:22 AMwrangler pages dev
but I don't understand how to use it. I get "DurableObjectError [ERR_CLASS_NOT_FOUND]". How do I link the class?HardAtWork
02/10/2023, 9:25 AMwrangler dev
session with a Worker that exposes CLASS
frankichiro
02/10/2023, 9:25 AMfrankichiro
02/10/2023, 9:25 AMfrankichiro
02/10/2023, 9:42 AMwrangler dev
for my Page locally, I add --do SESSION=Session
, and have the DO Worker running at the same time, but I still get 'Class "Session" for Durable Object "SESSION" not found'.
What am I missing?Dani Foldi
02/10/2023, 10:01 AMsathoro
02/10/2023, 11:21 AM0xcaff
02/10/2023, 5:23 PMsathoro
02/10/2023, 5:33 PMHardAtWork
02/10/2023, 6:12 PMsathoro
02/10/2023, 6:27 PMjs
let { counter = 0 } = await this.state.storage.get(['counter']);
sathoro
02/10/2023, 6:27 PMsathoro
02/10/2023, 6:28 PMjs
let { counter = 0 } = Object.fromEntries(await this.state.storage.get(['counter']));
sathoro
02/10/2023, 6:34 PMzegevlier
02/10/2023, 6:41 PMitty-durable
, that do that.HardAtWork
02/10/2023, 7:07 PMjs
let [ counter = 0 ] = await this.state.storage.get(["counter"]);
, or if you only ever need one value, js
letcounter = await this.state.storage.get("counter") || 0;
?sathoro
02/10/2023, 7:08 PM