New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
Someone deletes a todo. The database agrees it's gone. The list on screen does not.
What you'll have at the end
A Server Action that calls revalidatePath or revalidateTag right after the mutation, and a refreshed list on the very next load
You need
A working Server Action that deletes one row from the database, wired to a delete control on a list already rendering from a cached read.
Not covered
A delete triggered by a webhook instead of a person's own action in the browser; that path can leave the browser's own navigation cache stale even once the server side is fixed, and needs a different fix.
Leans on
Checked 25 Aug 2026
Part of the NextJS cookbook