Skip to content

Commit 0b97a1e

Browse files
Update reference-react-component.md
1 parent c2c520e commit 0b97a1e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

content/docs/reference-react-component.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,7 @@ Megjegyzendő, hogy ez a metódus *minden egyes* renderelődéskor meghívódik,
299299
getSnapshotBeforeUpdate(prevProps, prevState)
300300
```
301301

302-
<<<<<<< HEAD
303302
A `getSnapshotBeforeUpdate()` rögtön azelőtt hívódik meg, hogy a legutóbb renderelt kimenet el van mentve pl. a DOM-ba. Ez lehetővé teszi, hogy a komponens kiragadjon információkat a DOM-ból (pl. görgetési pozíció), mielőtt az potenciálisan megváltozna. Bármely érték, amit ez a metódus visszaad, a `componentDidUpdate()`-nek lesz átadva.
304-
=======
305-
`getSnapshotBeforeUpdate()` is invoked right before the most recently rendered output is committed to e.g. the DOM. It enables your component to capture some information from the DOM (e.g. scroll position) before it is potentially changed. Any value returned by this lifecycle method will be passed as a parameter to `componentDidUpdate()`.
306-
>>>>>>> c3c93e2a7ff1b1f7b8735a3a87d4b10937eaaf91
307303

308304
Ez a használati eset nem gyakori, de előfordulhat olyan felhasználói felületeken, mint például egy csevegőalkalmazás, aminek speciálisan kell kezelnie a görgetési pozíciót.
309305

0 commit comments

Comments
 (0)