0
0
NextJSframework~5 mins

ISR (Incremental Static Regeneration) in NextJS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is ISR (Incremental Static Regeneration) in Next.js?
ISR lets you update static pages after build time without rebuilding the whole site. It regenerates pages in the background when users visit them, keeping content fresh and fast.
Click to reveal answer
beginner
How do you enable ISR for a page in Next.js?
You add the revalidate property in getStaticProps and set it to the number of seconds after which the page should regenerate.
Click to reveal answer
intermediate
What happens when a user visits a page that needs regeneration in ISR?
The user sees the old page immediately. Next.js regenerates the page in the background. The next visitor gets the updated page.
Click to reveal answer
intermediate
Why is ISR better than rebuilding the whole site for every content change?
ISR updates only the changed pages, saving time and server resources. It keeps pages fast and content fresh without full rebuild delays.
Click to reveal answer
beginner
Which Next.js data fetching method supports ISR?
getStaticProps supports ISR by returning a revalidate value. getServerSideProps does not support ISR.
Click to reveal answer
What does the revalidate property control in ISR?
AHow often a static page regenerates in seconds
BThe number of users allowed to visit a page
CThe cache size for static files
DThe server response timeout
When does ISR regenerate a page?
AIn the background after the <code>revalidate</code> time when a user visits
BOn every user request without caching
COnly during the initial build
DWhen the server restarts
Which data fetching method is used with ISR in Next.js?
A<code>getServerSideProps</code>
B<code>useEffect</code>
C<code>getStaticProps</code>
D<code>getInitialProps</code>
What does a user see when a page is regenerating with ISR?
AA loading spinner until regeneration finishes
BAn error message
CA blank page
DThe old cached page immediately
Why is ISR useful for large websites?
AIt rebuilds the entire site faster
BIt updates only changed pages, saving time and resources
CIt disables caching for all pages
DIt forces server-side rendering for all pages
Explain how ISR works in Next.js and why it is beneficial compared to full static rebuilds.
Think about how static pages can stay fresh without rebuilding everything.
You got /4 concepts.
    Describe the user experience when visiting a page that is being regenerated using ISR.
    Focus on what the user sees and what happens behind the scenes.
    You got /4 concepts.