next-learn icon indicating copy to clipboard operation
next-learn copied to clipboard

Chapter 10 - warning about missing unique key when enabling `ppr`

Open ks4na opened this issue 1 year ago • 0 comments

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.

屏幕截图(1)

then i disabled ppr - no warning :

屏幕截图(2)

then i enabled ppr, but removed app/dashboard/(overview)/loading.tsx ( I changed filename to loadingx.tsx ) - no warning :

屏幕截图(3)`

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.

ks4na avatar Aug 28 '24 01:08 ks4na