{"id":15878530,"url":"https://github.com/tdd/ssg-react-query-poc","last_synced_at":"2025-04-01T23:43:15.441Z","repository":{"id":213712194,"uuid":"734751402","full_name":"tdd/ssg-react-query-poc","owner":"tdd","description":"An off-the-cuff demo of bare-bones custom SSG for React components using React-Query","archived":false,"fork":false,"pushed_at":"2024-01-10T11:00:28.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T15:31:08.551Z","etag":null,"topics":[],"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/tdd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-22T14:12:51.000Z","updated_at":"2024-01-05T19:03:38.000Z","dependencies_parsed_at":"2024-01-09T14:49:25.114Z","dependency_job_id":"c5a2e1c6-89db-4084-a0f3-af377a9f53dd","html_url":"https://github.com/tdd/ssg-react-query-poc","commit_stats":null,"previous_names":["tdd/ssg-react-query-poc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdd%2Fssg-react-query-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdd%2Fssg-react-query-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdd%2Fssg-react-query-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdd%2Fssg-react-query-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdd","download_url":"https://codeload.github.com/tdd/ssg-react-query-poc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246730312,"owners_count":20824396,"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-10-06T02:40:24.684Z","updated_at":"2025-04-01T23:43:15.412Z","avatar_url":"https://github.com/tdd.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SSG POC\n\nThis provides an example for custom, bare-bones SSG of React pages that rely on React-Query for data fetching.\n\nThe app runs in the regular way (`npm run dev` based on Vite), but the `npm run ssg` custom npm script performs a custom SSG of per-character HTML files for every instance of the `\u003cCharacter/\u003e` component.\n\nIt accomplishes that by prefetching relevant queries, using the appropriate query keys, in a unified query client used by the page wrapper that renders each page.\n\nBecause these are all public pages and every query has a unique URL and key, there is zero need to create individual query clients per page.\n\n\u003e ⚠️ Prefetching currently parallelizes **all** queries ahead of the rendering loop, but this might be unduly large for production use-cases and would likely require batch processing with subsequent clearing to avoid OOM issues (and also provide progression feedback).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdd%2Fssg-react-query-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdd%2Fssg-react-query-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdd%2Fssg-react-query-poc/lists"}