Are you an LLM? You can read better optimized documentation at /openapi-ts/plugins/swr.md for this page in Markdown format
SWR vote
Excited about SWR?
Help us prioritize this feature by voting on GitHub or consider becoming a contributor.
About
SWR is a strategy to first return the data from cache (stale), then send the fetch request (revalidate), and finally come with the up-to-date data.
Sponsors
Partners behind the future of API tooling. Become a sponsor.
Gold

Best-in-class developer interfaces for your API.
stainless.comThe open source coding agent.
opencode.ai
