Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Traduction de streaming.md #19

Merged
merged 2 commits into from
Jul 22, 2017
Merged

Traduction de streaming.md #19

merged 2 commits into from
Jul 22, 2017

Conversation

MachinisteWeb
Copy link
Member

Et encore un fichier traduit :)

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb
Copy link
Member Author

Dernières reviews pour boucler la trad SSR @Kocal et @forresst, on y est presque !

en/streaming.md Outdated

In stream rendering mode, data is emitted as soon as possible when the renderer traverses the Virtual DOM tree. This means we can get an earlier "first chunk" and start sending it to the client faster.
En mode de rendu par flux, la donnée est émise aussitôt que possible quand le moteur parcours l'arbre du DOM virtuel. Cela signifie que l'envoi au client du « premier fragment » commence rapidement.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quand le moteur parcourt

en/streaming.md Outdated

However, when the first data chunk is emitted, the child components may not even be instantiated yet, neither will their lifecycle hooks get called. This means if the child components need to attach data to the render context in their lifecycle hooks, these data will not be available when the stream starts. Since a lot of the context information (like head information or inlined critical CSS) needs to be appear before the application markup, we essentially have to wait until the stream to complete before we can start making use of these context data.
Cependant, quand le premier fragment est émis, les composants enfants peuvent ne pas avoir encore été instanciés, ni même leur cycle de vie appelé. Cela signifie que si des composants enfants on besoin d'attacher leurs données dans le contexte de rendu de leurs hooks de cycle de vie, elles ne seront pas accessible au démarrage du flux. Comme beaucoup d'informations (comme les informations d'entête ou les CSS critique injectée) ont besoin d'être inséré avant la balise de l'application, il est nécessaire d'attendre la fin du flux avant de commencer à utiliser ces données de contexte.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je propose de remplacer

ni même leur cycle de vie appelé

par

et les hooks de leur cycle de vie ne seront jamais appelés.

@MachinisteWeb
Copy link
Member Author

T'es un chef @Kocal, je relis ça.

Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
@MachinisteWeb
Copy link
Member Author

Bon pour moi @Kocal. Merci.

@MachinisteWeb MachinisteWeb merged commit 49eb5dd into working Jul 22, 2017
@MachinisteWeb
Copy link
Member Author

Top

@MachinisteWeb MachinisteWeb deleted the streaming branch July 22, 2017 08:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants