没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
介绍 swr.vercel.app SWR 是一个用于远程数据获取的 React Hooks 库。 “SWR”这个名字来源于 stale-while-revalidate,一种由 HTTP RFC 5861 推广的缓存失效策略。 SWR 首先从缓存中返回数据(stale),然后发送 fetch 请求(revalidate),最后随着 up - 再次更新数据。 它的特点: 传输和协议不可知的数据获取 快速页面导航 焦点重新验证 间隔轮询 请求重复数据删除 本地变异 分页 TypeScript 就绪 SSR 支持 Suspense 模式 React Native 支持 最小 API ......等等。 使用 SWR,组件将不断自动地获得数据更新流。 因此,UI 将始终快速且具有React性。 快速入门从 'swr' 函数 Profile() { const { data, error } = useSWR('/api/user', fetcher) if (error) return
资源推荐
资源详情
资源评论
收起资源包目录
用于远程数据获取的 React Hooks 库 (158个子文件)
CODEOWNERS 27B
.eslintignore 42B
.eslintrc 1KB
.gitignore 122B
suggestions.js 3KB
index.js 2KB
index.js 2KB
index.js 2KB
index.js 1KB
[repo].js 1KB
index.js 1KB
index.js 1KB
index.js 1KB
[repo].js 1KB
[pokemon].js 1016B
index.js 957B
index.js 799B
index.js 742B
[repo].js 733B
index.js 706B
data.js 655B
[repo].js 579B
data.js 574B
[repo].js 572B
[repo].js 553B
index.js 548B
index.js 545B
index.js 510B
data.js 503B
data.js 501B
data.js 501B
data.js 501B
data.js 501B
data.js 488B
useOnScreen.js 483B
index.js 439B
useRequest.js 435B
index.js 414B
data.js 391B
data.js 391B
_app.js 366B
error-handling.js 351B
button.js 338B
button.js 338B
user.js 301B
jest.config.js 262B
data.js 214B
auth.js 204B
use-repository.js 167B
use-projects.js 152B
storage.js 140B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetch.js 139B
fetcher.js 139B
fetcher.js 139B
store.js 69B
package.json 3KB
tsconfig.json 658B
tsconfig.json 533B
tsconfig.json 533B
package.json 456B
package.json 450B
package.json 383B
package.json 370B
package.json 367B
package.json 342B
package.json 342B
package.json 342B
package.json 340B
package.json 339B
package.json 339B
package.json 339B
package.json 335B
package.json 333B
package.json 331B
package.json 320B
package.json 307B
package.json 258B
tsconfig.test.json 150B
ci.json 125B
LICENSE 1KB
yarn.lock 300KB
README.md 19KB
CODE_OF_CONDUCT.md 3KB
CONTRIBUTING.md 2KB
README.md 1KB
README.md 1KB
README.md 835B
README.md 796B
README.md 789B
README.md 772B
共 158 条
- 1
- 2
资源评论
沈临白
- 粉丝: 44
- 资源: 4572
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 计算最佳快递运费.xlsx
- 20221230IqFQX3Yc.zip
- Microsoft.AspNetCore.Authentication.JwtBearer 3.1.32
- picCombobox图片下拉菜单案例.xls
- Java语言实现使用Prim(普利姆)算法求最小生成树(源代码)
- grex 既是一个库也是一个命令行工具,它可以自动从用户提供的测试用例生成单个正则表达式
- 奕尧笔记 yiyao-notebook-evv Setup 3.1.6.exe
- 继保实验模版 实验一 三段式电流保护及自动重合闸 实验二 变压器差动保护 实验三 微机型距离保护实验
- web前端页面通过BrowserPrint API连接斑马打印机进行RFID条形码贴纸打印
- 导体、导线、各种电缆载流量表
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功