Giter Site home page Giter Site logo

Comments (7)

JeanMeche avatar JeanMeche commented on April 28, 2024

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.

lemito avatar lemito commented on April 28, 2024

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.

JeanMeche avatar JeanMeche commented on April 28, 2024

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.

lemito avatar lemito commented on April 28, 2024

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.

JeanMeche avatar JeanMeche commented on April 28, 2024

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.

lemito avatar lemito commented on April 28, 2024

Hmmm... Okay, well, thanks for your help.

from angular.

JeanMeche avatar JeanMeche commented on April 28, 2024

Closing as work as intented for the moment.

from angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.