@wanp/use-swr-data
Version:
use-swr-data is a React hook that simplifies data fetching and caching using SWR (stale-while-revalidate) strategy.
31 lines (30 loc) • 774 B
JSON
{
"name": "@wanp/use-swr-data",
"type": "module",
"version": "1.2.0",
"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/my-library/tree/main/packages/useSwrData",
"repository": "https://github.com/wanpan11/my-library",
"keywords": [
"react",
"react-request",
"swr",
"react-swr"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"README.md",
"dist"
],
"scripts": {
"build": "rollup -c",
"test": "vitest run",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"swr": "^2.3.4"
}
}