{"id":15677046,"url":"https://github.com/ecyrbe/react-axios-query","last_synced_at":"2025-05-07T00:42:25.669Z","repository":{"id":40440728,"uuid":"369321171","full_name":"ecyrbe/react-axios-query","owner":"ecyrbe","description":"combine the power of react-query and axios","archived":false,"fork":false,"pushed_at":"2023-12-15T11:52:06.000Z","size":100,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T05:16:19.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecyrbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-20T19:47:01.000Z","updated_at":"2024-10-28T02:47:53.000Z","dependencies_parsed_at":"2024-10-23T13:03:42.507Z","dependency_job_id":null,"html_url":"https://github.com/ecyrbe/react-axios-query","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"fb3e63db8ed6adfb36b953c94c8ce03de9b6646b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecyrbe%2Freact-axios-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecyrbe%2Freact-axios-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecyrbe%2Freact-axios-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecyrbe%2Freact-axios-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecyrbe","download_url":"https://codeload.github.com/ecyrbe/react-axios-query/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793546,"owners_count":21805053,"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":[],"created_at":"2024-10-03T16:08:16.924Z","updated_at":"2025-05-07T00:42:25.645Z","avatar_url":"https://github.com/ecyrbe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-axios-query\n\nCombine the power of react-query and axios.\n\n## install\n\n```bash\nyarn add react-axios-query\n```\n\n# use\n\n```javascript\nimport { useAxios } from 'react-axios-query';\n\ntype User = {\n  name: string;\n  phone: string;\n  website: string;\n}\n\nconst Component = (props) =\u003e {\n  const { \n    isLoading,\n    data: {\n      data: user\n      status\n    },\n    error,\n    isFetching\n  } = useAxios\u003cUser\u003e({\n      method: 'GET',\n      url: '/user/1'\n    });\n  if(isLoading) {\n    return 'Loading...';\n  }\n  if(error) {\n    return `Error: ${$error}`;\n  }\n  return `Status: ${status}, User: ${user}`;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecyrbe%2Freact-axios-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecyrbe%2Freact-axios-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecyrbe%2Freact-axios-query/lists"}