Andy
04/07/2021, 8:46 PMDeleted User
04/08/2021, 5:12 PMKevin W - Itty
04/08/2021, 5:18 PMKevin W - Itty
04/08/2021, 5:19 PMDeleted User
04/08/2021, 5:53 PMtogmund
04/08/2021, 6:14 PMKevin W - Itty
04/08/2021, 6:15 PMtogmund
04/08/2021, 6:15 PMEliot
04/08/2021, 8:51 PMstate.storage.delete()
method to immediately delete keys from a Durable Object.
Here's the strange thing. I can see that the method is deleting keys, as it returns true
for each deleted key (and false
if the key didn't exist).
However, when I retrieve the keys, they are still there with their values!!! Now the bizarre thing. As soon as I republish (e.g. wrangler publish
) the keys are deleted, without even making a call to the Worker!
I was hoping that someone could provide some insight here. Refer to my attached Worker and durable object script.Eliot
04/08/2021, 8:51 PMmehdiiii
04/08/2021, 8:59 PMdelete this[key]
(and probably validate that key before) along with your this.state.storage.delete(key)
Eliot
04/08/2021, 9:51 PMKevin W - Itty
04/08/2021, 11:01 PMKevin W - Itty
04/08/2021, 11:02 PMmehdiiii
04/08/2021, 11:14 PMKevin W - Itty
04/08/2021, 11:45 PMDeleted User
04/09/2021, 4:06 AMeidam | SuperSaaS
04/09/2021, 7:54 PMNetwork connection lost.
🤔 It seems to be happening only on routes that interacts with DO somehowKevin W - Itty
04/09/2021, 10:07 PMDeleted User
04/09/2021, 11:02 PMKevin W - Itty
04/10/2021, 2:05 AMmolmorg
04/10/2021, 5:14 PMmatt
04/10/2021, 5:37 PMmolmorg
04/10/2021, 6:01 PMmolmorg
04/10/2021, 6:01 PMvans163
04/10/2021, 8:17 PMvans163
04/10/2021, 8:22 PMvans163
04/10/2021, 8:22 PMvans163
04/10/2021, 8:26 PMvans163
04/10/2021, 8:26 PM