{"id":22698019,"url":"https://github.com/devjiwonchoi/repro-next-dynamic-css-client-navigation","last_synced_at":"2025-03-29T18:28:01.547Z","repository":{"id":265019259,"uuid":"883625562","full_name":"devjiwonchoi/repro-next-dynamic-css-client-navigation","owner":"devjiwonchoi","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-06T12:51:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T02:12:23.043Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devjiwonchoi.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-11-05T09:48:16.000Z","updated_at":"2024-11-06T12:51:04.000Z","dependencies_parsed_at":"2024-11-27T10:17:53.339Z","dependency_job_id":null,"html_url":"https://github.com/devjiwonchoi/repro-next-dynamic-css-client-navigation","commit_stats":null,"previous_names":["devjiwonchoi/repro-next-dynamic-css-client-navigation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Frepro-next-dynamic-css-client-navigation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Frepro-next-dynamic-css-client-navigation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Frepro-next-dynamic-css-client-navigation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Frepro-next-dynamic-css-client-navigation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devjiwonchoi","download_url":"https://codeload.github.com/devjiwonchoi/repro-next-dynamic-css-client-navigation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246225746,"owners_count":20743616,"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-12-10T05:17:11.390Z","updated_at":"2025-03-29T18:28:01.528Z","avatar_url":"https://github.com/devjiwonchoi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Reproduce\n\n\u003e [!NOTE]\n\u003e This issue is only reproducible in the production environment.\n\n```bash\npnpm install\n```\n\n```bash\npnpm build \u0026\u0026 pnpm start\n```\n\n## Problem #1 (Dynamic CSS Leaking)\n\n1. Go to `http://localhost:3000/next-dynamic`.\n2. The `Red Button` is red.\n3. Open the Browser Devtools `Elements` tab.\n4. `\u003chead\u003e` contains a `link[rel=\"stylesheet\"]`.\n4. Click on `/no-red-button`.\n5. You will see the text `Stylesheet is leaked: true`.\n6. `\u003chead\u003e` still contains a `link[rel=\"stylesheet\"]`.\n\n## Problem #2 (Static CSS Page → Dynamic CSS Page Style Miss)\n\n1. Go to `http://localhost:3000`.\n2. The `Red Button` is red.\n3. Open the Browser Devtools `Elements` tab.\n4. `\u003chead\u003e` contains a `link[rel=\"stylesheet\"]` with `data-n-p` attribute.\n5. Click on `/next-dynamic`.\n6. The `Red Button` is gray.\n7. `\u003chead\u003e` no longer contains `link[rel=\"stylesheet\"]`.\n\n\u003e **Note:** The `data-n-p` attribute means that the stylesheet was server rendered.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Frepro-next-dynamic-css-client-navigation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevjiwonchoi%2Frepro-next-dynamic-css-client-navigation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Frepro-next-dynamic-css-client-navigation/lists"}