{"id":15416266,"url":"https://github.com/ooade/use-fetch-hook","last_synced_at":"2025-04-05T16:06:42.365Z","repository":{"id":38847980,"uuid":"257235212","full_name":"ooade/use-fetch-hook","owner":"ooade","description":"A custom hook to fetch and cache data","archived":false,"fork":false,"pushed_at":"2024-11-01T18:50:18.000Z","size":837,"stargazers_count":112,"open_issues_count":1,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T15:06:12.209Z","etag":null,"topics":["react","react-hooks"],"latest_commit_sha":null,"homepage":"https://use-fetch.dev.adegbuyi.me","language":"JavaScript","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/ooade.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-20T09:39:56.000Z","updated_at":"2024-11-17T12:38:47.000Z","dependencies_parsed_at":"2022-08-26T20:00:23.347Z","dependency_job_id":"d55e6a8c-79a0-4476-bdb4-ae21f2d2ab9d","html_url":"https://github.com/ooade/use-fetch-hook","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.17391304347826086","last_synced_commit":"022d57b68a55f0c86e119feff986cc50f3613870"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooade%2Fuse-fetch-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooade%2Fuse-fetch-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooade%2Fuse-fetch-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooade%2Fuse-fetch-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooade","download_url":"https://codeload.github.com/ooade/use-fetch-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361686,"owners_count":20926643,"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":["react","react-hooks"],"created_at":"2024-10-01T17:11:22.478Z","updated_at":"2025-04-05T16:06:42.319Z","avatar_url":"https://github.com/ooade.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Use Fetch Hook\n\nTLDR; This repo shows how to build a custom hook to fetch and cache data!\n\nHere's [a deployed version](https://use-fetch-hook-example.netlify.app) of this example on Netlify!\n\nI wrote a piece about it on [Smashing Magazine](https://www.smashingmagazine.com/2020/07/custom-react-hook-fetch-cache-data/).\n\n## Contents\n\n- [Installation](#installation)\n- [Run locally](#run-locally)\n\n### Installation\n\nClone repo:\n\nSSH:\n\n```sh\ngit clone git@github.com:ooade/use-fetch-hook.git\ncd use-fetch-hook\n```\n\nor\n\nHTTPS:\n\n```sh\ngit clone https://github.com/ooade/use-fetch-hook.git\ncd use-fetch-hook\n```\n\n### Run locally\n\nStart a live-reload development server:\n\n```sh\nyarn start\n```\n\n---\n\nIf you have any question, feel free to [reach out to me](https://twitter.com/_ooade)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooade%2Fuse-fetch-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooade%2Fuse-fetch-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooade%2Fuse-fetch-hook/lists"}