Skip to content

Commit 2e84d4d

Browse files
committed
chore(sync): handle merge conflicts
1 parent 9e8e2d0 commit 2e84d4d

File tree

3 files changed

+12
-33
lines changed

3 files changed

+12
-33
lines changed

src/content/community/team.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ Les membres actuels de l'équipe React sont listés ci-dessous par ordre alphab
2222
Andrey a commencé sa carrière comme designer pour progressivement passer au développement web. Après avoir rejoint l'équipe React Data chez Meta, il a travaillé à ajouter un compilateur incrémental JavaScript dans Relay… pour finir par le retirer plus tard. Hors du boulot, Andrey aime jouer de la musique et faire divers types de sports.
2323
</TeamMember>
2424

25-
<<<<<<< HEAD
26-
<TeamMember name="Dan Abramov" permalink="dan-abramov" photo="/images/team/gaearon.jpg" github="gaearon" twitter="dan_abramov" title="Ingénieur indépendant">
25+
<TeamMember name="Dan Abramov" permalink="dan-abramov" photo="/images/team/gaearon.jpg" github="gaearon" twitter="dan_abramov2" title="Ingénieur indépendant">
2726
Dan a commencé à programmer lorsqu'il a découvert par hasard qu'il y avait Visual Basic dans Microsoft Powerpoint. Il a découvert que sa véritable vocation consistait à transformer les tweets de [Sebastian](#sebastian-markbåge) en billets de blog interminables. Dan gagne parfois à Fortnite en se cachant dans un buisson jusqu'à la fin de la partie.
28-
=======
29-
<TeamMember name="Dan Abramov" permalink="dan-abramov" photo="/images/team/gaearon.jpg" github="gaearon" twitter="dan_abramov2" title="Independent Engineer">
30-
Dan got into programming after he accidentally discovered Visual Basic inside Microsoft PowerPoint. He has found his true calling in turning [Sebastian](#sebastian-markbåge)'s tweets into long-form blog posts. Dan occasionally wins at Fortnite by hiding in a bush until the game ends.
31-
>>>>>>> 265fa26e3b39739f06c956140d9acf618c6b4e6b
3227
</TeamMember>
3328

3429
<TeamMember name="Eli White" permalink="eli-white" photo="/images/team/eli-white.jpg" github="TheSavior" twitter="Eli_White" threads="elicwhite" title="Manager d’ingénieurs chez Meta">

src/content/reference/react/useDeferredValue.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ function SearchPage() {
4040

4141
#### Valeur renvoyée {/*returns*/}
4242

43-
<<<<<<< HEAD
4443
Durant le rendu initial, la valeur différée renvoyée sera celle que vous avez fournie. Lors des mises à jour, React tentera d'abord un rendu avec l'ancienne valeur (il va donc renvoyer l'ancienne valeur), et ensuite essayer en arrière-plan un rendu avec la nouvelle valeur (il va donc renvoyer la valeur à jour).
45-
=======
46-
During the initial render, the returned deferred value will be the same as the value you provided. During updates, React will first attempt a re-render with the old value (so it will return the old value), and then try another re-render in the background with the new value (so it will return the updated value).
47-
>>>>>>> 265fa26e3b39739f06c956140d9acf618c6b4e6b
4844

4945
#### Limitations {/*caveats*/}
5046

@@ -80,11 +76,7 @@ function SearchPage() {
8076

8177
Lors du rendu initial, la <CodeStep step={2}>valeur différée</CodeStep> sera la même que la <CodeStep step={1}>valeur</CodeStep> que vous avez fournie.
8278

83-
<<<<<<< HEAD
8479
Lors des mises à jour, la <CodeStep step={2}>valeur différée</CodeStep> sera « en retard » par rapport à la dernière <CodeStep step={1}>valeur</CodeStep>. Plus particulièrement, React fera d'abord un rendu *sans* mettre à jour la valeur différée, puis tentera un rendu supplémentaire en arrière-plan avec la nouvelle valeur reçue.
85-
=======
86-
During updates, the <CodeStep step={2}>deferred value</CodeStep> will "lag behind" the latest <CodeStep step={1}>value</CodeStep>. In particular, React will first re-render *without* updating the deferred value, and then try to re-render with the newly received value in the background.
87-
>>>>>>> 265fa26e3b39739f06c956140d9acf618c6b4e6b
8880

8981
**Parcourons un exemple afin de comprendre l'utilité de ce Hook.**
9082

@@ -516,11 +508,7 @@ Imaginez un déroulement en deux étapes :
516508

517509
1. **Pour commencer, React refait un rendu avec la nouvelle `query` (`"ab"`) mais avec l'ancienne `deferredQuery` (toujours `"a")`.** La valeur `deferredQuery`, que vous passez à la liste de résultats, est *différée* : elle est « en retard » par rapport à la valeur `query`.
518510

519-
<<<<<<< HEAD
520511
2. **En arrière-plan, React tente alors un autre rendu avec `query` et `deferredQuery` valant *toutes les deux* `"ab"`.** Si ce rendu aboutit, React l'affichera à l'écran. Cependant, s'il suspend (les résultats pour `"ab"` ne sont pas encore chargés), React abandonnera cet essai de rendu, et essaiera à nouveau une fois les données chargées. L'utilisateur continuera à voir l'ancienne valeur différée jusqu'à ce que les données soient prêtes.
521-
=======
522-
2. **In the background, React tries to re-render with *both* `query` and `deferredQuery` updated to `"ab"`.** If this re-render completes, React will show it on the screen. However, if it suspends (the results for `"ab"` have not loaded yet), React will abandon this rendering attempt, and retry this re-render again after the data has loaded. The user will keep seeing the stale deferred value until the data is ready.
523-
>>>>>>> 265fa26e3b39739f06c956140d9acf618c6b4e6b
524512

525513
Le rendu différé « d'arrière-plan » est susceptible d'être interrompu. Par exemple, si vous tapez à nouveau dans le champ de saisie, React l'abandonnera et recommencera avec la nouvelle valeur. React utilisera toujours la dernière valeur fournie.
526514

@@ -963,11 +951,7 @@ Mêmes si ces techniques sont utiles dans certains cas, `useDeferredValue` est p
963951

964952
Contrairement au *debouncing* et au *throttling*, il ne nécessite pas de choisir un délai fixe. Si l'appareil de l'utilisateur est rapide (par exemple un ordinateur puissant), le rendu différé serait quasiment immédiat, le rendant imperceptible pour l'utilisateur. Si l'appareil est lent, la liste serait « en retard » par rapport au champ de saisie, proportionnellement à la lenteur de l'appareil.
965953

966-
<<<<<<< HEAD
967954
De plus, les rendus différés planifiés par `useDeferredValue` sont par défaut susceptibles d'être interrompus, ce qui n'est pas le cas du *debouncing* ou du *throttling*. Ça signifie que si React est en plein milieu du rendu d'une vaste liste, et que l'utilisateur ajuste sa saisie, React abandonnera ce rendu, traitera la frappe, et recommencera le rendu en arrière-plan. Par opposition, le *debouncing* et le *throttling* donneraient ici toujours une expérience saccadée car ils sont *bloquants* : ils diffèrent simplement le moment auquel le rendu bloque la frappe.
968-
=======
969-
Also, unlike with debouncing or throttling, deferred re-renders done by `useDeferredValue` are interruptible by default. This means that if React is in the middle of re-rendering a large list, but the user makes another keystroke, React will abandon that re-render, handle the keystroke, and then start rendering in the background again. By contrast, debouncing and throttling still produce a janky experience because they're *blocking:* they merely postpone the moment when rendering blocks the keystroke.
970-
>>>>>>> 265fa26e3b39739f06c956140d9acf618c6b4e6b
971955

972956
Si vous souhaitez optimiser des traitements hors du rendu, le *debouncing* et le *throttling* restent utiles. Par exemple, ils peuvent vous permettre de lancer moins de de requêtes réseau. Vous pouvez parfaitement combiner ces techniques.
973957

vercel.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,52 +77,52 @@
7777
},
7878
{
7979
"source": "/link/event-pooling",
80-
"destination": "https://legacy.reactjs.org/docs/legacy-event-pooling.html",
80+
"destination": "https://fr.legacy.reactjs.org/docs/legacy-event-pooling.html",
8181
"permanent": false
8282
},
8383
{
8484
"source": "/link/legacy-context",
85-
"destination": "https://legacy.reactjs.org/docs/legacy-context.html",
85+
"destination": "https://fr.legacy.reactjs.org/docs/legacy-context.html",
8686
"permanent": false
8787
},
8888
{
8989
"source": "/link/crossorigin-error",
90-
"destination": "https://legacy.reactjs.org/docs/cross-origin-errors.html",
90+
"destination": "https://fr.legacy.reactjs.org/docs/cross-origin-errors.html",
9191
"permanent": false
9292
},
9393
{
9494
"source": "/link/react-polyfills",
95-
"destination": "https://legacy.reactjs.org/docs/javascript-environment-requirements.html",
95+
"destination": "https://fr.legacy.reactjs.org/docs/javascript-environment-requirements.html",
9696
"permanent": false
9797
},
9898
{
9999
"source": "/link/wrap-tests-with-act",
100-
"destination": "https://legacy.reactjs.org/docs/test-utils.html#act",
100+
"destination": "https://fr.legacy.reactjs.org/docs/test-utils.html#act",
101101
"permanent": false
102102
},
103103
{
104104
"source": "/link/refs-must-have-owner",
105-
"destination": "https://legacy.reactjs.org/warnings/refs-must-have-owner.html",
105+
"destination": "https://fr.legacy.reactjs.org/warnings/refs-must-have-owner.html",
106106
"permanent": false
107107
},
108108
{
109109
"source": "/link/derived-state",
110-
"destination": "https://legacy.reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html",
110+
"destination": "https://fr.legacy.reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html",
111111
"permanent": false
112112
},
113113
{
114114
"source": "/link/strict-mode-string-ref",
115-
"destination": "https://legacy.reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs",
115+
"destination": "https://fr.legacy.reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs",
116116
"permanent": false
117117
},
118118
{
119119
"source": "/link/perf-use-production-build",
120-
"destination": "https://legacy.reactjs.org/docs/optimizing-performance.html#use-the-production-build",
120+
"destination": "https://fr.legacy.reactjs.org/docs/optimizing-performance.html#use-the-production-build",
121121
"permanent": false
122122
},
123123
{
124124
"source": "/link/unsafe-component-lifecycles",
125-
"destination": "https://legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html",
125+
"destination": "https://fr.legacy.reactjs.org/blog/2018/03/27/update-on-async-rendering.html",
126126
"permanent": false
127127
},
128128
{
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"source": "/link/attribute-behavior",
135-
"destination": "https://legacy.reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html#changes-in-detail",
135+
"destination": "https://fr.legacy.reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html#changes-in-detail",
136136
"permanent": false
137137
},
138138
{

0 commit comments

Comments
 (0)