{"id":15668842,"url":"https://github.com/jaydenseric/react-waterfall-render","last_synced_at":"2025-05-06T20:03:11.806Z","repository":{"id":57347536,"uuid":"339654320","full_name":"jaydenseric/react-waterfall-render","owner":"jaydenseric","description":"Renders nested React components with asynchronous cached loading; useful for GraphQL clients and server side rendering.","archived":false,"fork":false,"pushed_at":"2022-08-26T03:38:28.000Z","size":114,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T08:39:12.039Z","etag":null,"topics":["deno","esm","graphql","hooks","maintained","mjs","node","npm","react","typescript"],"latest_commit_sha":null,"homepage":"https://npm.im/react-waterfall-render","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/jaydenseric.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"jaydenseric"}},"created_at":"2021-02-17T08:18:31.000Z","updated_at":"2024-01-26T00:12:50.000Z","dependencies_parsed_at":"2022-08-28T03:01:30.996Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/react-waterfall-render","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Freact-waterfall-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Freact-waterfall-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Freact-waterfall-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Freact-waterfall-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/react-waterfall-render/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252761123,"owners_count":21800124,"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":["deno","esm","graphql","hooks","maintained","mjs","node","npm","react","typescript"],"created_at":"2024-10-03T14:20:17.183Z","updated_at":"2025-05-06T20:03:11.753Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jaydenseric"],"categories":[],"sub_categories":[],"readme":"# react-waterfall-render\n\nRenders nested [React](https://reactjs.org) components with asynchronous cached loading.\n\nUseful for [GraphQL](https://graphql.org) clients (e.g. [`graphql-react`](https://npm.im/graphql-react)) and server side rendering.\n\n## Installation\n\nFor [Node.js](https://nodejs.org), to install [`react-waterfall-render`](https://npm.im/react-waterfall-render) and its [`react`](https://npm.im/react) peer dependency with [npm](https://npmjs.com/get-npm), run:\n\n```sh\nnpm install react-waterfall-render react\n```\n\nFor [Deno](https://deno.land) and browsers, an example import map (realistically use 4 import maps, with optimal URLs for server vs client and development vs production):\n\n```json\n{\n  \"imports\": {\n    \"react\": \"https://esm.sh/react@18.2.0\",\n    \"react-waterfall-render/\": \"https://unpkg.com/react-waterfall-render@5.0.0/\"\n  }\n}\n```\n\nUse the [`WaterfallRenderContext`](./WaterfallRenderContext.mjs) in [React](https://reactjs.org) components to declare asynchronous cached loading, and use the function [`waterfallRender`](./waterfallRender.mjs) to server side render your [React](https://reactjs.org) app in a fully loaded state.\n\n## Requirements\n\nSupported runtime environments:\n\n- [Node.js](https://nodejs.org) versions `^14.17.0 || ^16.0.0 || \u003e= 18.0.0`.\n- [Deno](https://deno.land), importing from a CDN that might require an import map for dependencies.\n- Browsers matching the [Browserslist](https://npm.im/browserslist) query `\u003e 0.5%, not OperaMini all, not dead`.\n\nNon [Deno](https://deno.land) projects must configure [TypeScript](https://typescriptlang.org) to use types from the ECMAScript modules that have a `// @ts-check` comment:\n\n- [`compilerOptions.allowJs`](https://typescriptlang.org/tsconfig#allowJs) should be `true`.\n- [`compilerOptions.maxNodeModuleJsDepth`](https://typescriptlang.org/tsconfig#maxNodeModuleJsDepth) should be reasonably large, e.g. `10`.\n- [`compilerOptions.module`](https://typescriptlang.org/tsconfig#module) should be `\"node16\"` or `\"nodenext\"`.\n\n## Exports\n\nThe [npm](https://npmjs.com) package [`react-waterfall-render`](https://npm.im/react-waterfall-render) features [optimal JavaScript module design](https://jaydenseric.com/blog/optimal-javascript-module-design). It doesn’t have a main index module, so use deep imports from the ECMAScript modules that are exported via the [`package.json`](./package.json) field [`exports`](https://nodejs.org/api/packages.html#exports):\n\n- [`waterfallRender.mjs`](./waterfallRender.mjs)\n- [`WaterfallRenderContext.mjs`](./WaterfallRenderContext.mjs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Freact-waterfall-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Freact-waterfall-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Freact-waterfall-render/lists"}