Durable object resets value on each request to Worker
According to the docs I've created an durable object:
With proper class in my Worker:
When I'm trying to increment value, I'm always getting
1
for some reason:
Using latest version of. Wrangler with command: wrangler dev --remote --local-protocol https
3 Replies
The sad thing that I need to create another worker to test it when deployed.
So I'm gonna create another worker to test deployed Durable object counter.
Btw when testing locally with
--remote
arg I'm unable to see Durable object at the dashboard (see image).
full wrangler.toml, maybe smth wrong with
compatibility_date
?^it would be great if that could be documented somewhere. I didn’t know that remote dev would only create a temporary version for DOs. Also, if they aren’t in the dashboard at all, it’s hard to debug in dev