How long do static members declared in DurableObject persist?

I tested that it persists even when the object is idle. When exactly are static members destroyed? class Test { private i: number = 0; constructor() { console.log(test init); } public incr() { ++this.i; console.log(num : ${this.i}); } } export class MyDurableObject extends DurableObject<Env> { private static Test: Test = new Test(); }
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?