Next.js · Junior · Question 73 of 75
What does export const dynamicParams = false do on a page with generateStaticParams (without Cache Components)?
- ✓Correct answer: Params not returned by
generateStaticParamsreturn a 404 instead of being rendered on demand - 2It disables all dynamic routes in the app
- 3It makes
paramssynchronous
Explanation
By default unknown params are rendered on demand and cached. dynamicParams is not available when Cache Components are enabled.