Front-end/Next.js

[Next.js] Data Fetching

Bay Im 2024. 3. 8. 00:21
  • Data Fetch Sample
    • CSR (Client Side Rendering)
      • 파일에 최상단에 ‘use client’; 작성
    • SSG (Static Site Generation)
      • getStaticProps
      • cache: “no-store”
    • SSR (Server Side Rendering)
      • getServerSideProps
      • cache: “force-cache”
    • ISR
      • next: { revalidate: 초, }
728x90