-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
T'es un chef @Kocal, je relis ça. |
Signed-off-by: Bruno Lesieur <bruno.lesieur@gmail.com>
Bon pour moi @Kocal. Merci. |
Top |
Et encore un fichier traduit :)