{"id":15357772,"url":"https://github.com/mefengl/query-unnecessary","last_synced_at":"2026-01-19T11:01:48.886Z","repository":{"id":235064057,"uuid":"631328127","full_name":"mefengl/query-unnecessary","owner":"mefengl","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-22T17:13:47.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:11:48.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mefengl.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}},"created_at":"2023-04-22T17:09:54.000Z","updated_at":"2023-04-22T17:09:55.000Z","dependencies_parsed_at":"2024-04-22T05:10:20.175Z","dependency_job_id":"18107555-eced-44b4-95d3-c4276491e7db","html_url":"https://github.com/mefengl/query-unnecessary","commit_stats":null,"previous_names":["mefengl/query-unnecessary"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mefengl/query-unnecessary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fquery-unnecessary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fquery-unnecessary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fquery-unnecessary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fquery-unnecessary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mefengl","download_url":"https://codeload.github.com/mefengl/query-unnecessary/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefengl%2Fquery-unnecessary/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-01T12:38:53.926Z","updated_at":"2026-01-19T11:01:48.868Z","avatar_url":"https://github.com/mefengl.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# query-unnecessary\n\n```js\n// https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose#defining-on-demand-messages\nconst queryClient = new QueryClient({\n  queryCache: new QueryCache({\n    onError: (error, query) =\u003e {\n      if (query.meta.errorMessage) {\n        toast.error(query.meta.errorMessage)\n      }\n    },\n  }),\n})\n\nexport function useTodos() {\n  return useQuery({\n    queryKey: ['todos', 'list'],\n    queryFn: fetchTodos,\n    meta: {\n      errorMessage: 'Failed to fetch todos',\n    },\n  })\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fquery-unnecessary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmefengl%2Fquery-unnecessary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefengl%2Fquery-unnecessary/lists"}