Loading...
  Previous Lesson Complete and Continue  

Next.js 15 Advanced Patterns

Session 1: Advanced Data Fetching
  • 36 - Handling GET Requests (02:55)
  • 37 - Handling POST Requests (03:35)
  • 38 - Dynamic Route Handlers (03:35)
  • 39 - Handling PATCH Requests (03:09)
  • 40 - Handling DELETE Requests (02:52)
  • 41 - URL Query Parameters (02:59)
  • 42 - Headers in Route Handlers (05:42)
  • 43 - Cookies in Route Handlers (03:29)
  • 44 - Redirects in Route Handlers (01:33)
  • 45 - Caching in Route Handlers (04:24)
  • 46 - Middleware (06:17)
  • 47 - Rendering (01:26)
  • 48 - Client-side Rendering (CSR) (03:19)
  • 49 - Server-side Rendering (SSR) (04:55)
  • 50 - Suspense SSR (06:33)
  • 51 - React Server Components (06:36)
  • 52 - Server and Client Components (06:19)
  • 53 - RSC Rendering Lifecycle (03:36)
  • 54 - Static Rendering (11:13)
  • 55 - Dynamic Rendering (04:48)
Session 2: Mutations & Server Actions
  • 56 - generateStaticParams (05:25)
  • 57 - dynamicParams (03:40)
  • 58 - Streaming (02:53)
  • 59 - Server and Client Composition Patterns (01:07)
  • 60 - Server-only Code (05:09)
  • 61 - Third Party Packages (04:53)
  • 62 - Context Providers (05:09)
  • 63 - Client-only Code (04:16)
  • 64 - Client Component Placement (04:55)
  • 65 - Interleaving Server and Client Components (08:13)
  • 66 - Data Fetching (01:35)
  • 67 - Fetching Data in Client Components (04:12)
  • 68 - Fetching Data in Server Components (04:21)
  • 69 - Loading and Error States (02:58)
  • 70 - Sequential Data Fetching (05:27)
  • 71 - Parallel Data Fetching (05:56)
  • 72 - Fetching from a Database (06:33)
  • 73 - Data Mutations (03:13)
  • 74 - Forms with Server Actions (05:55)
  • 75 - Pending State with useFormStatus (03:36)
  • 76 - Form Validation with useActionState (06:56)
  • 77 - Separating Server Actions (03:33)
  • 78 - useFormStatus vs useActionState (01:37)
  • 79 - Update Server Action (08:54)
  • 80 - Delete Server Action (03:32)
  • 81 - Optimistic Updates (06:18)
  • 82 - Form Component (07:42)
  • 83 - Authentication (02:26)
  • 84 - Clerk Setup (02:59)
  • 85 - Sign in and Sign out (03:05)
  • 86 - Profile Settings (03:09)
  • 87 - Conditional UI Rendering (01:36)
  • 88 - Protecting Routes (03:59)
  • 89 - Read Session and User Data (05:04)
  • 90 - Role Based Access Control (11:12)
  • 91 - Customizing Clerk Components (06:40)
  • 92 - Deploying Next.js Apps to Vercel (02:44)

36 - Handling GET Requests

In this video, we dive deeper into working with route handlers by learning how to handle GET requests in Next.js. We will use Thunder Client, a REST API client for VS Code, to test our route handlers without setting up a database. Our data will be stored in memory and cleared upon app restart or page refresh. We'll create a basic GET handler to return an array of comments as a JSON response and test it using Thunder Client. This tutorial focuses on understanding the mechanics of GET route handlers.

Membership Required

To access

You need membership or higher.

Unlock Membership Now