swr
https://github.com/vercel/swr
TypeScript
React Hooks for Data Fetching
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
TypeScript not yet supported2 Subscribers
Add a CodeTriage badge to swr
Help out
- Issues
- isEqual in useSWRHandler reads returnedData before it is declared (ReferenceError: Cannot access '…' before initialization)
- fix: initialize returnedData before isEqual to avoid TDZ ReferenceError (#4379)
- fix: isolate server snapshots by cache provider
- INITIAL_CACHE is module-global, so server snapshots leak between cache instances
- fix(cache): use Map for INITIAL_CACHE to avoid prototype key collisions
- INITIAL_CACHE lookup uses 'in' on a plain object, so keys like 'toString' resolve to Object.prototype
- test: await async assertions in local mutation tests
- fix: isolate raw string keys from structured key hashes
- Raw string keys can collide with array/object keys (cache aliasing), not fixed by #4370
- fix(hash): escape object key delimiters to avoid collisions
- Docs
- TypeScript not yet supported