跳到内容

数据加载

用于加载和管理数据的实用工具。

数据加载随时间变化的比重

无论是在使用率还是积极性方面,TanStack Query 都在继续增长。特别是兴趣图显示,除了 tRPC 之外,它几乎是目前唯一一个仍在吸引受访者的数据加载库!

Apollo Client
Relay
RTK Query
SWR
TanStack Query
tRPC
Fetch
Axios

模式:

视图:

使用度:

使用过某个项目的受访者比例
0%
20%
40%
60%
80%
100%
2023
2024
0%
20%
40%
60%
80%
100%

Number of Items

How many items in this category respondents have used.

0%
4%
9%
13%
18%
22%
1

0

1,668
2

1

353
3

2

1,180
4

3

1,727
5

4

1,525
6

5

883
7

6

398
8

7

113
9

8

23
0%
4%
9%
13%
18%
22%
调查对象百分比

其他数据加载工具库

kyURQL 外,没有一个新的数据加载库得分超过 10 次提及的最低门槛。

您还使用过哪些其他库来加载数据?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

2

3

4

5

其他答案

匹配“其他答案”的答案 164
0%
20%
40%
60%
80%
100%
受访者百分比
我们邀请 React 社区成员分享他们的"年度之选"

我的 2024 年度之选: Lucide Icons

Material UI 团队正在构建一个下一代的 CSS-in-JS 库,将样式化 API 引入 React Server Components 时代。虽然已经有很多 CSS-in-JS 工具,但这个工具满足了我所有的需求。
我们邀请 React 社区成员分享他们的"年度之选"

Josh W. Comeau

软件工程师和教育者。The Joy of React 的创作者

Data Loading Pain Points

What pain points have you encountered related to data loading?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

状态管理 (useState, Redux, Context, 等等。)

2

Caching

3

Error handling

4

cache_issues

5

Apollo issues

6

Excessive complexity

7

其他答案

匹配“其他答案”的答案 211
0%
20%
40%
60%
80%
100%
受访者百分比
Client-Side GraphQL with React, v2
Scott Moss
Superfilter AI

Client-Side GraphQL with React, v2

Use type-safe GraphQL APIs in your React applications. Learn the GraphQL Query Language and write queries and mutations while building a data layer with the Urql GraphQL client.
感谢合作伙伴对我们的支持! 了解更多。