Debugging
The page still shows old data after a save
You save, the database changes, and the screen shows the old value until a hard refresh.
- What you get
- Every layer that can hold an old copy checked, and the one that isn’t being refreshed fixed.
- Paste it into
- Your AI tool, in your project
The prompt
After saving a change in my app, the page keeps showing the old value until I hard-refresh, or longer. Follow one save from the button to the database and back to the screen. Check each place an old copy could live: component state, a client-side data cache, the framework's page or fetch cache, a CDN, and the browser. Tell me which one is serving the stale value and how you know. Fix it at that layer by refreshing exactly what changed, not by turning caching off everywhere. Then check the other screens that show the same data, and tell me which pages are still cached on purpose and for how long.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Debugging
It works for you and breaks for a user
A user reports a bug you can’t reproduce, with a screenshot and no details.
Track down a bug that only happens sometimes
It fails one time in ten, and every fix seems to work until it doesn’t.
Fix an error you don’t understand
The AI patches the line the error names, and a new error appears somewhere else.
Break out of a fix-and-break loop
Each fix causes a new bug, and you’ve been going round for an hour.