{"id":18696470,"url":"https://github.com/hermanya/use-suspense-today","last_synced_at":"2025-04-12T07:31:16.223Z","repository":{"id":39376093,"uuid":"210219899","full_name":"Hermanya/use-suspense-today","owner":"Hermanya","description":"⏳ Use React Suspense today, with any data fetching library","archived":false,"fork":false,"pushed_at":"2023-01-04T11:08:35.000Z","size":3701,"stargazers_count":29,"open_issues_count":44,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T15:47:34.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Hermanya.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}},"created_at":"2019-09-22T21:59:28.000Z","updated_at":"2023-09-08T17:58:16.000Z","dependencies_parsed_at":"2023-02-02T09:47:02.002Z","dependency_job_id":null,"html_url":"https://github.com/Hermanya/use-suspense-today","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-suspense-today","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-suspense-today/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-suspense-today/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hermanya%2Fuse-suspense-today/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hermanya","download_url":"https://codeload.github.com/Hermanya/use-suspense-today/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248533691,"owners_count":21120140,"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-11-07T11:19:10.633Z","updated_at":"2025-04-12T07:31:15.864Z","avatar_url":"https://github.com/Hermanya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-suspense-today\n\n\u003e Use React Suspense today, with any data fetching library\n\n[![NPM](https://img.shields.io/npm/v/use-suspense-today.svg)](https://www.npmjs.com/package/use-suspense-today) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save use-suspense-today\n```\n\n## Usage\n\n```tsx\nimport * as React from 'react'\nimport { useSuspense } from 'use-suspense-today'\n\nconst Child = () =\u003e {\n  const { loading, data } = useApiThatIsNotSuspenseReady();\n  useSuspense(loading);\n  return \u003csection\u003e{data}\u003c/section\u003e;\n};\n\nconst Parent = () =\u003e {\n  return (\n    \u003cReact.Suspense fallback={\u003cdiv\u003eLoading...\u003c/div\u003e}\u003e\n      \u003cChild /\u003e\n    \u003c/React.Suspense\u003e\n  );\n};\n```\n\n## License\n\nMIT © [Hermanya](https://github.com/Hermanya)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fuse-suspense-today","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhermanya%2Fuse-suspense-today","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhermanya%2Fuse-suspense-today/lists"}