Next.js app stages
2025-01-08
Ref: GeeksforGeeks
Next.js app stages manage state, logic and optimization.
Initial state setup and config. The initial app load.
Fetch data (initial, server-side and static props) and render
Called during initial, and subsequent updates
returns JSX component representation
Get pre-render paths for dynamic routes Get data for rqd changes
Cleanup resources