Show HN: XSWR – The simplest React data (re)fetching library ever made

Hey there, I made a new library for React data fetching.

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!

1 points Hazae41 4 years ago 0 comments

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton