{"id":13781082,"url":"https://github.com/crubier/react-loadable-context","last_synced_at":"2026-01-17T19:30:17.630Z","repository":{"id":57334026,"uuid":"134152432","full_name":"crubier/react-loadable-context","owner":"crubier","description":"Asynchronously load object into the context","archived":false,"fork":false,"pushed_at":"2018-06-23T01:44:57.000Z","size":771,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T00:56:01.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crubier.github.io/react-loadable-context/","language":"JavaScript","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/crubier.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}},"created_at":"2018-05-20T13:20:46.000Z","updated_at":"2019-10-23T19:51:17.000Z","dependencies_parsed_at":"2022-08-30T21:42:04.372Z","dependency_job_id":null,"html_url":"https://github.com/crubier/react-loadable-context","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/crubier%2Freact-loadable-context","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crubier%2Freact-loadable-context/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crubier%2Freact-loadable-context/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crubier%2Freact-loadable-context/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crubier","download_url":"https://codeload.github.com/crubier/react-loadable-context/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239758831,"owners_count":19692034,"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-08-03T18:01:22.760Z","updated_at":"2026-01-17T19:30:17.566Z","avatar_url":"https://github.com/crubier.png","language":"JavaScript","readme":"# react-loadable-context\n\nWebsite at https://crubier.github.io/react-loadable-context/\n\nA component to asynchronously load any object into the react context, for example when using [Code Splitting](https://webpack.js.org/guides/code-splitting/).\n\n```\nnpm install --save react-loadable-context\n```\n\nJust like [the new context API](https://reactjs.org/docs/context.html), this function returns:\n\n* A `Provider`, which injects the loaded object into the context as soon as the promise is resolved\n* Various `Consumer` components, which gracefully handle loading and error states.\n\nThis is particularly usefull when creating libraries which interface react with third party heavy libraries, such as Cesium, vis.js, openlayers and others. The main \"wrapper\" component for the library uses the `Provider`. The various \"elements\" of the library use the `Consumer`.\n\nLosely inspired by [react-loadable](https://github.com/jamiebuilds/react-loadable) and [the new context API](https://reactjs.org/docs/context.html).\n","funding_links":[],"categories":["Libraries","List"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrubier%2Freact-loadable-context","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrubier%2Freact-loadable-context","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrubier%2Freact-loadable-context/lists"}