Next.js · Middle · Question 24 of 75
What does export const dynamic = 'force-dynamic' do (without Cache Components)?
- ✓Correct answer: Forces the route to render on every request, disabling prerendering
- 2Enables hot module reloading in the production build too
- 3Makes all of the route's components client components, like
'use client'
Explanation
It's a route segment config option from the previous caching model. With Cache Components, explicit tools are used instead: 'use cache' for caching, <Suspense> and connection() for request-time data. It doesn't turn components into client components.