Inspect & Correct a Bug in App Router

A basic prompt for a user to tell their coding assistant to Inspect & Correct a Bug in App Router (Next.js).

user
2 upvotes
120
38
58
120

Prompt Content

I have a component in `app/dashboard/page.tsx` that should fetch data via the async `GET` handler using `cookies()` and `params`, but it throws a hydration mismatch. Walk through the logic, identify any mismatch issue (e.g. using client APIs on server components), and apply a fix. Show both the corrected component and a brief summary of what's changed.

How to use this prompt

Copy the prompt below and paste it into your AI assistant or use it as inspiration for your own prompts.

Created by
Nermal
@nermalcat69
Member on Promptu
View Profile
Join our community
Get help, share ideas, and connect with other prompt creators on our Discord server.
Join Discord
Inspect & Correct a Bug in App Router - Promptu