TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 Hazae41超过 2 年前
Hey there, I made a new library for React data fetching.<p>XSWR is very inspired from SWR (which stands for &quot;Stale While Revalidate&quot;).<p>In fact, it&#x27;s a side project I made to fill in the gaps of SWR, that ended up production-ready.<p>XSWR uses two new approaches compared to other data fetching libraries like swr or react-query:<p>- Encapsulating key, fetcher and resource type in a single abstraction called &quot;handle&quot;.<p>- Composing features with very simple hooks instead of having bloated configuration patterns and unexpected behaviours.<p>By using these two approaches, XSWR aims to help you highly centralize and reuse things.<p>Docs: <a href="https:&#x2F;&#x2F;xswr.hazae41.me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xswr.hazae41.me&#x2F;</a><p>Comparison with swr and react-query: <a href="https:&#x2F;&#x2F;xswr.hazae41.me&#x2F;faq&#x2F;comparison" rel="nofollow">https:&#x2F;&#x2F;xswr.hazae41.me&#x2F;faq&#x2F;comparison</a><p>Thanks for you feedbacks!

暂无评论

暂无评论