You can use React Query for slow computation, not just API

摘要

React Query brings the ergonomics of GraphQL clients to RESTful APIs. It scratched my itch.

Getting a whole company onto a new way of writing the API layer is hard and there's real work to do. React Query offers the perfect middle ground.

Keep the RESTful API you're used to, get the request deduping, data caching, loading states, re-fetching, and hooks ergonomics you dream of. ?

You can use those same ergonomics for any slow operation. Doesn't have to be an API call.

欢迎在评论区写下你对这篇文章的看法。

评论

首页 - Wiki
Copyright © 2011-2025 iteam. Current version is 2.144.0. UTC+08:00, 2025-07-07 21:40
浙ICP备14020137号-1 $访客地图$