{"id":13660861,"url":"https://github.com/marvinhagemeister/preact-loadable","last_synced_at":"2026-03-06T10:03:46.479Z","repository":{"id":66223286,"uuid":"108958422","full_name":"marvinhagemeister/preact-loadable","owner":"marvinhagemeister","description":"Tiny preact component for async tasks","archived":false,"fork":false,"pushed_at":"2018-01-20T10:00:55.000Z","size":37,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T18:40:31.194Z","etag":null,"topics":["async","loadable","preact"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/marvinhagemeister.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-10-31T07:09:29.000Z","updated_at":"2023-12-06T17:46:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"3711d313-9932-49b6-97d4-f9c5c526ddf3","html_url":"https://github.com/marvinhagemeister/preact-loadable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marvinhagemeister/preact-loadable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marvinhagemeister%2Fpreact-loadable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marvinhagemeister%2Fpreact-loadable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marvinhagemeister%2Fpreact-loadable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marvinhagemeister%2Fpreact-loadable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marvinhagemeister","download_url":"https://codeload.github.com/marvinhagemeister/preact-loadable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marvinhagemeister%2Fpreact-loadable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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":["async","loadable","preact"],"created_at":"2024-08-02T05:01:26.740Z","updated_at":"2026-03-06T10:03:46.416Z","avatar_url":"https://github.com/marvinhagemeister.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Preact Loadable\n\nA simple component to display the promise state of a promise returning function\nor any other async task.\n\n## Installation\n\n```bash\n# npm\nnpm install --save preact preact-loadable\n\n# yarn\nyarn add preact preact-loadable\n```\n\n## Usage\n\n```jsx\nimport { h } from \"preact\";\nimport Loadable from \"preact-loadable\";\n\nfunction MyComponent() {\n  return \u003cdiv\u003e\n    \u003cLoadable\n      // Can be sync or async\n      fn={() =\u003e import(\"../MyOtherComponent\").then(m =\u003e m.default())}\n      error={err =\u003e \"Oops, an error occurred: \" + err.message}\n      loading={() =\u003e \"Loading...\"}\n      success={result =\u003e doSomething(result)}\n    /\u003e\n  \u003c/div\u003e;\n}\n```\n\n## License\n\n`MIT`, see [License file](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvinhagemeister%2Fpreact-loadable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarvinhagemeister%2Fpreact-loadable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarvinhagemeister%2Fpreact-loadable/lists"}