@wanp/use-swr-data
Version:
use-swr-data is a React hook that simplifies data fetching and caching using SWR (stale-while-revalidate) strategy.
33 lines (32 loc) • 800 B
JSON
{
"name": "@wanp/use-swr-data",
"type": "module",
"version": "1.0.3",
"description": "use-swr-data is a React hook that simplifies data fetching and caching using SWR (stale-while-revalidate) strategy.",
"author": "wanp11",
"license": "MIT",
"homepage": "https://github.com/wanpan11/react-library/tree/main/packages/useSwrData",
"repository": {
"type": "git",
"url": "git+https://github.com/wanpan11/react-library.git"
},
"keywords": [
"react",
"react-request",
"swr",
"react-swr"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"README.md",
"dist"
],
"scripts": {
"build": "rollup -c",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"swr": "^2.3.4"
}
}