{"id":21193648,"url":"https://github.com/danielmschmidt/reactive-graphql-react","last_synced_at":"2025-09-01T21:33:08.775Z","repository":{"id":34042405,"uuid":"166381811","full_name":"DanielMSchmidt/reactive-graphql-react","owner":"DanielMSchmidt","description":"React bindings for reactive-graphql","archived":false,"fork":false,"pushed_at":"2024-10-30T05:03:14.000Z","size":1957,"stargazers_count":8,"open_issues_count":9,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T08:30:11.686Z","etag":null,"topics":["react","reactive","reactive-graphql","rxjs6"],"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/DanielMSchmidt.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":"2019-01-18T09:43:48.000Z","updated_at":"2024-10-30T05:01:44.000Z","dependencies_parsed_at":"2023-01-16T22:45:45.720Z","dependency_job_id":"b5dcb172-53ab-49f3-82b7-3085eabfe4be","html_url":"https://github.com/DanielMSchmidt/reactive-graphql-react","commit_stats":{"total_commits":425,"total_committers":3,"mean_commits":"141.66666666666666","dds":0.2517647058823529,"last_synced_commit":"0f1e4086facf7a0c40198d3311c384f2535a3a74"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Freactive-graphql-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Freactive-graphql-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Freactive-graphql-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielMSchmidt%2Freactive-graphql-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielMSchmidt","download_url":"https://codeload.github.com/DanielMSchmidt/reactive-graphql-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225615164,"owners_count":17496946,"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","reactive","reactive-graphql","rxjs6"],"created_at":"2024-11-20T19:15:09.237Z","updated_at":"2024-11-20T19:15:09.889Z","avatar_url":"https://github.com/DanielMSchmidt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reactive GraphQL React\n\nReact Hook bindings for [reactive-graphql](https://github.com/mesosphere/reactive-graphql).\n\n## Usage\n\n```ts\nimport gql from \"graphql-tag\";\nimport getReactiveGraphqlReact from \"reactive-graphql-react\";\n\nconst schema = getSchema(); // get a GraphQL schema\nconst useGraphql = getReactiveGraphqlReact(schema); // get the hook\n\nexport default function MyComponent() {\n  // Always up-to-date data\n  const [result, error] = useGraphql(gql`\n    query {\n      posts {\n        title\n        author {\n          name\n        }\n      }\n    }\n  `);\n\n  if (error) {\n    return \u003ch3\u003eThere has been an error fetching the data\u003c/h3\u003e;\n  }\n\n  if (!result) {\n    return \u003ch3\u003eLoading, please wait\u003c/h3\u003e;\n  }\n\n  const {\n    data: { posts }\n  } = result;\n\n  return \u003cPostList items={posts} /\u003e;\n}\n```\n\n## Setup\n\nYou need React in `\u003e= 16.8.0-alpha.1`. Besides just run `npm install --save reactive-graphql-react` and you are ready to go.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmschmidt%2Freactive-graphql-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielmschmidt%2Freactive-graphql-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielmschmidt%2Freactive-graphql-react/lists"}