Skip to content

Commit 6685121

Browse files
Update src/content/blog/2025/02/14/sunsetting-create-react-app.md
1 parent 1d4f7b5 commit 6685121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/blog/2025/02/14/sunsetting-create-react-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export default function Dashboard() {
179179

180180
在副作用中获取数据意味着用户需要等待更长时间才能看到内容,即使这些数据本可以更早地获取。为了解决这个问题,你可以使用一些数据获取库,例如:[React Query](https://react-query.tanstack.com/)[SWR](https://swr.vercel.app/)[Apollo](https://www.apollographql.com/docs/react)[Relay](https://relay.dev/),这些库提供了预取数据的功能,使得请求可以在组件渲染之前就开始,从而减少用户等待时间并提升性能
181181

182-
这些库在与路由的 "loader" 模式 集成时效果最佳,可以在路由级别指定数据依赖关系,从而使路由器能够优化数据获取:
182+
这些库在与路由的loader”模式集成时效果最佳,可以在路由级别指定数据依赖关系,从而使路由器能够优化数据获取:
183183

184184
```js
185185
export async function loader() {

0 commit comments

Comments
 (0)