SWR

SWR

React Hooks for Remote Data Fetching


Description

React Hooks for Remote Data Fetching

Overview

SWR is a library that provides React hooks to simplify remote data fetching.

Naming Origin

The acronym “SWR” comes from stale‑while‑revalidate, an HTTP cache invalidation strategy detailed in RFC 5861.

Operation Flow

  1. Stale – The hook first supplies cached data, which may be outdated.
  2. Revalidate – It then initiates a network request to fetch fresh data.
  3. Update – Once the new data arrives, the hook updates the component with the latest information.

Creator

Vercel
@vercel

Related Projects

RNRepo

RNRepo

React Native Pre-Built Artifacts

ReactUseKit

ReactUseKit

Collection of React Hooks & Helpers

React Native Builder Bob

React Native Builder Bob

Collection of Tools to Scaffold React Native Libraries

React Simplikit

React Simplikit

React Utility Library

Intlayer

Intlayer

Internationalization & Content Management Solution

React Native Legal

Generate License Acknowledgements