{"id":22663171,"url":"https://github.com/puti94/react-cache-request","last_synced_at":"2025-04-12T07:22:09.585Z","repository":{"id":38909166,"uuid":"250505414","full_name":"puti94/react-cache-request","owner":"puti94","description":"一个简易使用axios网络请求的hook,自带状态管理，缓存功能","archived":false,"fork":false,"pushed_at":"2023-01-05T17:24:37.000Z","size":2537,"stargazers_count":5,"open_issues_count":44,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:34:53.935Z","etag":null,"topics":["axios","cache","hooks","react","react-native"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puti94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-27T10:32:07.000Z","updated_at":"2022-09-23T04:30:06.000Z","dependencies_parsed_at":"2022-09-18T15:21:26.545Z","dependency_job_id":null,"html_url":"https://github.com/puti94/react-cache-request","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puti94%2Freact-cache-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puti94%2Freact-cache-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puti94%2Freact-cache-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puti94%2Freact-cache-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puti94","download_url":"https://codeload.github.com/puti94/react-cache-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248531002,"owners_count":21119677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","cache","hooks","react","react-native"],"created_at":"2024-12-09T12:17:35.028Z","updated_at":"2025-04-12T07:22:09.562Z","avatar_url":"https://github.com/puti94.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-cache-request\n\n一个使用axios进行网络请求的hook函数，具备内存，磁盘缓存功能。支持react,react-native\n\n## Getting Started\n\n\n### Install\n\n```\n$ yarn add react-cache-request axios\n```\n\n## Usage\n\n### Import\n\n```js\nimport {useRequest} from 'react-cache-request';\n```\n\n### Simple use\n```jsx\n\n const {data, status, error} = useRequest({url: 'https://cnodejs.org/api/v1/topics'})\n\n```\n\n### Docs\n\n[文档](https://puti94.github.io/react-cache-request/)\n\n### Example\n项目中有react和react-native的示例\n### Issue\n\n觉得不错的小手一点，给个star，有遇到什么bug或者有什么建议的欢迎提issue\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputi94%2Freact-cache-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fputi94%2Freact-cache-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fputi94%2Freact-cache-request/lists"}