Comments (7)
Hi, this is explicitly being stated in the docs:
When 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.
Note, this particular feature (rendering @defer
blocks on the server) is being investigated for the next major version.
from angular.
Hi, this is explicitly being stated in the docs:
When 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.
Hi. Thanks for the documentation, I've read the documentation several times, but only now I realized what this paragraph is about :)
So, do I understand correctly that this is normal behavior for @defer or will this be fine-tuned in future versions?
Note, this particular feature (rendering
@defer
blocks on the server) is being investigated for the next major version.
Then what is the correct way to proceed for the examples? What should the @Placeholder be filled with or @defer is inappropriate in this case?
from angular.
This behavior is normal and expected with the implementation of the defer block we have in v17.
The gist you shared twice the same blocks, maybe if you update it I can give you a complete answer for your issue.
from angular.
The gist you shared twice the same blocks, maybe if you update it I can give you a complete answer for your issue.
Oops... Sorry, I didn't realize.
Pieces of code fixed.
from angular.
As the docs say, SSR/SSG will only render the @placeholder
block in v17.
If you need SSG/SSR to render that block you will need to drop the @defer
until this is supported.
from angular.
Hmmm... Okay, well, thanks for your help.
from angular.
Closing as work as intented for the moment.
from angular.
Related Issues (20)
- [i18n] `ng insert-i18n` (reverse `ng extract-i18n`) HOT 3
- generate @angular/core:control-flow failed HOT 1
- It's impossible to set signal input of hosted directive - hostDirectives HOT 1
- `InjectionToken<T>` is poorly typed HOT 1
- Add further documentation about TestBed.override features HOT 1
- @angular/core:control-flow migration breaks with Greek characters
- Cannot read properties of null (reading 'bindingStartIndex') HOT 2
- Issues with types and inheritances of those when used inside FormGroup HOT 2
- feat(@angular/router): Add navigateToParent method with steps option HOT 1
- this.router.getCurrentNavigation().extras.state used to return undefined for the 1st navigation after reload the page HOT 3
- Angular devtools stopped working few days ago. "Angular application not detected" HOT 6
- Using this keyword in templates will use template varibales instead of component variables. HOT 2
- ChangeDetectionSchedulerImpl breaks Zoneless apps
- Minor mistake in "Image optimization" guide page (aio) HOT 2
- Output Signal works, but parent says event is not emitted... HOT 2
- Pipes doc not loading when opening it in angular.dev https://angular.dev/api/common#pipes HOT 1
- Scrolling on angular.dev API reference page is not working well HOT 2
- Angular DevTools not available - Firefox Developer Edition HOT 8
- No link to sources from reference documentation on angular.dev HOT 1
- Uncaught Error: ASSERTION ERROR: NodeInjector must have some connection to the module injector tree HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.