---
title: "Discussion on \"SWR Reference: useSWR, Mutations, Infinite Scroll, Revalidation and Next.js\" | Hashnode"
description: "Discussion on \"SWR Reference: useSWR, Mutations, Infinite Scroll, Revalidation and Next.js\". SWR reference — stale-while-revalidate, mutations, and infinite scroll.\nThe mental model: serve cache immediately, revalidate in background\nconst { data, isLoading, isValidating } = useSWR<User>(\"/api/me\", fetcher);\n// isLoading = true only on first ..."
url: "https://hashnode.com/posts/swr-reference-useswr-mutations-infinite-scroll-revalidation-nextjs-2026/69b5d2112759fef3363892a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [SWR Reference: useSWR, Mutations, Infinite Scroll, Revalidation and Next.js](https://releaserun.hashnode.dev/swr-reference-useswr-mutations-infinite-scroll-revalidation-nextjs-2026?utm_source=hashnode&utm_medium=feed)

SWR reference — stale-while-revalidate, mutations, and infinite scroll. The mental model: serve cache immediately, revalidate in background const { data, isLoading, isValidating } = useSWR<User>("/api/me", fetcher); // isLoading = true only on first ...

Mar 14 · 2 min read · releaserun.hashnode.dev  
Updated Mar 18  
Read the article

## Written by

[Matheus](https://hashnode.com/@matheus-releaserun)

@matheus-releaserun · London, UK

  
[View profile](https://hashnode.com/@matheus-releaserun)

Dev at ReleaseRun. Writing about releases, Node.js, DevOps.

25+ years building backend systems, APIs, and infrastructure. Now focused on helping developers stay on top of software releases. Building ReleaseRun — because reading changelogs shouldn't be a full-time job.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
