Title: @defer doesn't render @placeholder in SSR when @loading present · Issue #54385 · angular/angular · GitHub
Open Graph Title: @defer doesn't render @placeholder in SSR when @loading present · Issue #54385 · angular/angular
X Title: @defer doesn't render @placeholder in SSR when @loading present · Issue #54385 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hi. The docs say: When rendering an application on the server (either using SSR or SSG), defer blocks always render their @placeholder (or n...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hi. The docs say: When rendering an application on the server (either using SSR or SSG), defer block...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hi. The docs say: When rendering an application on the server (either using SSR or SSG), defer block...
Opengraph URL: https://github.com/angular/angular/issues/54385
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@defer doesn't render @placeholder in SSR when @loading present","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nNo\n\n### Description\n\nHi.\r\n\r\nThe docs say:\r\n\r\n```\r\nWhen rendering an application on the server (either using SSR or SSG), defer blocks always render their @placeholder (or nothing if a placeholder is not specified). Triggers are ignored on the server.\r\n```\r\n\r\nHowever, this **WILL NOT** render `@placeholder` inside SSR environment (it will result in empty content):\r\n\r\n```\r\n@defer (on immediate) {\r\n \u003ctest-component />\r\n } @loading {\r\n Loading...\r\n } @placeholder {\r\n Placeholder!!\r\n }\r\n```\r\n\r\nwhile this works as expected:\r\n\r\n```\r\n@defer (on immediate) {\r\n \u003ctest-component />\r\n } @placeholder {\r\n Placeholder!!\r\n }\r\n ```\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.1.3\r\nNode: 18.19.0\r\nPackage Manager: npm 10.2.3\r\nOS: darwin arm64\r\n\r\nAngular: 17.1.3\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router, ssr\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1701.3\r\n@angular-devkit/build-angular 17.1.3\r\n@angular-devkit/core 17.1.3\r\n@angular-devkit/schematics 17.1.3\r\n@schematics/angular 17.1.3\r\nrxjs 7.8.1\r\ntypescript 5.3.3\r\nzone.js 0.14.3\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/zip-fa","@type":"Person","name":"zip-fa"},"datePublished":"2024-02-12T08:31:59Z","url":"https://github.com/angular/angular/issues/54385"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9fb9847f-0f4f-8aff-69e8-681ade1ec15e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC50:2E7EBB:C9C449:FFD728:6B00FCCE |
| html-safe-nonce | b53d8f97447a5b801ad57132f0287e8ee4cee1b2c9492a152a6d2ce23d279bec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzUwOjJFN0VCQjpDOUM0NDk6RkZENzI4OjZCMDBGQ0NFIiwidmlzaXRvcl9pZCI6IjU4MTc3MTIyOTU3NzM1MzU0MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f3c147a4ff9870d0c0a1589ef60f427149ef94d2d1851233332b5612fada732c |
| hovercard-subject-tag | issue:2129637656 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/54385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca847a10234b03a0fce334ed267ef80dcd0c254e32f56055239507d5eef1f72c/angular/angular/issues/54385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca847a10234b03a0fce334ed267ef80dcd0c254e32f56055239507d5eef1f72c/angular/angular/issues/54385 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hi. The docs say: When rendering an application on the server (either using SSR or SSG), defer block... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zip-fa |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width