{"id":19710131,"url":"https://github.com/smnandre/ux-live-nested","last_synced_at":"2026-05-10T12:41:12.309Z","repository":{"id":237709678,"uuid":"795094316","full_name":"smnandre/ux-live-nested","owner":"smnandre","description":"Infinite scroll with nested components","archived":false,"fork":false,"pushed_at":"2024-05-02T15:29:30.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T14:01:51.062Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/smnandre.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T15:15:09.000Z","updated_at":"2024-05-14T03:49:01.000Z","dependencies_parsed_at":"2024-05-03T02:22:50.839Z","dependency_job_id":null,"html_url":"https://github.com/smnandre/ux-live-nested","commit_stats":null,"previous_names":["smnandre/ux-live-nested"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smnandre%2Fux-live-nested","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smnandre%2Fux-live-nested/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smnandre%2Fux-live-nested/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smnandre%2Fux-live-nested/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smnandre","download_url":"https://codeload.github.com/smnandre/ux-live-nested/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241026889,"owners_count":19896717,"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-11T22:06:29.307Z","updated_at":"2026-05-10T12:41:07.269Z","avatar_url":"https://github.com/smnandre.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Infinite scroll - nested\n\n\n(tricky) Solution concerning the infinite scroll with nested components.\n\nOriginal issue: https://github.com/symfony/ux/issues/1816\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cimg align=\"center\" src=\"infinite-nested.png\" alt=\"Infinite scroll nested\" width=\"500px\"\u003e\n\u003c/p\u003e\n\n## Solution\n\nWe must create the last fake ID **recursively**.\n\n```twig\n{% if page \u003e 1 %}\n    {# 🐼🐼 Apply the same trick recursively 🐼🐼 #}\n\n    {# ALL previous pages #}\n    {% for _page in 1..(page - 1) %}\n    \n        {# Fake page #}\n        \u003cdiv class=\"ProductGrid_page\" id=\"page--{{ _page }}\" data-live-ignore=\"true\"\u003e\n        \n            {# Fake page LAST resut #}\n            \u003carticle class=\"ProductGrid_item\" id=\"item--{{ _page }}--{{ per_page - 1 }}\"\u003e\u003c/article\u003e\n            \n        \u003c/div\u003e\n        \n    {% endfor %}\n{% endif %}\n```\n\n ## Run locally\n\n```\ncomposer install\nsymfony serve\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmnandre%2Fux-live-nested","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmnandre%2Fux-live-nested","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmnandre%2Fux-live-nested/lists"}