Why do we use generateStaticParams() when dynamic route params are already passed to page components?
In Next.js 14, dynamic route params are automatically passed to your page component. For example if you have a dynamic route products/[productid]/[variantid]
your pages under those dynamic route segments have access to the values of productId
and variantId
.