{"id":19681155,"url":"https://github.com/kolyasya/react-meteor-method-hooks","last_synced_at":"2026-02-19T16:03:51.139Z","repository":{"id":57334570,"uuid":"410508602","full_name":"kolyasya/react-meteor-method-hooks","owner":"kolyasya","description":"Simple hook to handle Meteor.call requests. Loading, Error and Result state","archived":false,"fork":false,"pushed_at":"2025-09-08T11:19:06.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T12:36:53.448Z","etag":null,"topics":["hooks","hooks-api-react","meteor","react"],"latest_commit_sha":null,"homepage":"","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/kolyasya.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-26T09:32:07.000Z","updated_at":"2023-02-21T10:32:45.000Z","dependencies_parsed_at":"2024-05-29T00:28:07.122Z","dependency_job_id":"c017cfcc-7994-485c-9de7-92a4aa5ff152","html_url":"https://github.com/kolyasya/react-meteor-method-hooks","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"095d99020f5613159274c063631900c2fa533540"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kolyasya/react-meteor-method-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolyasya%2Freact-meteor-method-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolyasya%2Freact-meteor-method-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolyasya%2Freact-meteor-method-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolyasya%2Freact-meteor-method-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kolyasya","download_url":"https://codeload.github.com/kolyasya/react-meteor-method-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kolyasya%2Freact-meteor-method-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29621902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"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":["hooks","hooks-api-react","meteor","react"],"created_at":"2024-11-11T18:07:04.572Z","updated_at":"2026-02-19T16:03:49.841Z","avatar_url":"https://github.com/kolyasya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-meteor-method-hooks\n\nSimple hook to handle `Meteor.call` requests.\n\nUsage example:\n\n```javascript\nimport React from 'react';\nimport { useMeteorCall } from 'react-meteor-method-hooks';\n\nconst MyComponent = () =\u003e {\n\n  const [\n    calculateSomething, \n    calculateSomethingLoading, \n    calculateSomethingError, \n    calculateSomethingResult\n  ] = useMeteorCall(\n    'calculateSomethingMethodName',\n    {},\n    (error, result) =\u003e {\n      if (error) {\n        alert(error.reason);\n      } else {\n        console.log(result);\n      }\n    },\n  );\n\n  return (\n    \u003cbutton \n      onClick={calculateSomething} \n      disabled={calculateSomethingLoading}\n    \u003e\n      Calculate\n    \u003c/button\u003e\n\n    \u003cdiv className=\"error\"\u003e{calculateSomethingError}\u003c/div\u003e\n    \u003cdiv className=\"result\"\u003e{calculateSomethingResult}\u003c/div\u003e\n  )\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolyasya%2Freact-meteor-method-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkolyasya%2Freact-meteor-method-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkolyasya%2Freact-meteor-method-hooks/lists"}