next-learn
next-learn copied to clipboard
Chapter 10 - warning about missing unique key when enabling `ppr`
Hello, I followed the steps in nextjs dashboard tutorial - chapter 10 to enable ppr and encountered a warning about missing unique key.
Here is the link to the reproducible CodeSandbox repo
use pnpm run dev to start the project.
when visiting /dashboard, a warning about missing unique key appeared.
then i disabled ppr - no warning :
then i enabled ppr, but removed app/dashboard/(overview)/loading.tsx ( I changed filename to loadingx.tsx ) - no warning :
`
then i updated content of loading.tsx to:
export default function DashBoardLoading() {
return <p>Loading...</p>;
}
the warning appeared again.
I can't find anything wrong with loading.tsx.