79405693

Date: 2025-02-01 21:22:06
Score: 1
Natty:
Report link

I post my answer, beacuse a I think that a lot of people are not aware that from Next.js v15 params attribute is considered as DYNAMIC API which can only be known during request - response lifecycle. That means, params needs to satisfy Promise type and to get params request for a page resource have to be made.

Related resources:

Async request API - next 15 breaking change

Request response lifecycle

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Mateusz W