Edit Stored Data using the Cloudflare KV Key

Share this video with your friends

Send Tweet

We can store and retrieve our data from our KV but not the status of whether or not it's checked off. To do that, we create a function called completeTodo that will target the checkbox, find the todo based on its id, flips the boolean from false to true and saves that data, and then updates our to-dos.