XSWR is very inspired from SWR (which stands for "Stale While Revalidate").
In fact, it's a side project I made to fill in the gaps of SWR, that ended up production-ready.
XSWR uses two new approaches compared to other data fetching libraries like swr or react-query:
- Encapsulating key, fetcher and resource type in a single abstraction called "handle".
- Composing features with very simple hooks instead of having bloated configuration patterns and unexpected behaviours.
By using these two approaches, XSWR aims to help you highly centralize and reuse things.
Docs: https://xswr.hazae41.me/
Comparison with swr and react-query: https://xswr.hazae41.me/faq/comparison
Thanks for you feedbacks!