Products

Demonstrating Request Memoization - multiple calls to the same fetch function only result in one network request.

How Request Memoization Works:

  • The getProducts() function is called twice on this page
  • Next.js automatically memoizes the fetch request during server rendering
  • Only one actual HTTP request is made to the API
  • Check your browser's Network tab to verify!

Memoization Evidence: Showing 78 products from second call (same as first call)