Skip to content

Commit 397cdd1

Browse files
committed
translate legacy-event-pooling.md
1 parent 482e60a commit 397cdd1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

content/docs/legacy-event-pooling.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
---
22
id: legacy-event-pooling
3-
title: Event Pooling
3+
title: Esemény pooling
44
permalink: docs/legacy-event-pooling.html
55
---
66

7-
>Note
7+
>Megjegyzés
88
>
9-
>This page is only relevant for React 16 and earlier, and for React Native.
9+
>Ez az oldal csak a React 16 és korábbi veziókra, valamint React Native-re vonatkozik.
1010
>
11-
>React 17 on the web **does not** use event pooling.
11+
>A React 17 a weben **nem használ** esemény pooling-ot.
1212
>
13-
>[Read more](/blog/2020/08/10/react-v17-rc.html#no-event-pooling) about this change in React 17.
13+
>Erről a React 17 változásról [többet itt olvashatsz](/blog/2020/08/10/react-v17-rc.html#no-event-pooling).
1414
15-
The [`SyntheticEvent`](/docs/events.html) objects are pooled. This means that the `SyntheticEvent` object will be reused and all properties will be nullified after the event event handler has been called. For example, this won't work:
15+
A [`SyntheticEvent`](/docs/events.html) objektumok egy közös készletben vannak. Ez azt jelenti, hogy a `SyntheticEvent` objektum újrafelhasználható és minden tulajdonság ki lesz nullázva az esemény callbackjének meghívása után. Ez például nem fog működni:
1616

1717
```javascript
1818
function handleChange(e) {
19-
// This won't work because the event object gets reused.
19+
// Ez nem fog műküdni, mert az esemény objektumok újra fel lesznek használva.
2020
setTimeout(() => {
21-
console.log(e.target.value); // Too late!
21+
console.log(e.target.value); // Túl késő!
2222
}, 100);
2323
}
2424
```
2525

26-
If you need to access event object's properties after the event handler has run, you need to call `e.persist()`:
26+
Ha szeretnél egy esemény tulajdonságaihoz azután hozzáférni hogy az eseménykezelő lefutott, meg kell hogy hívd az `e.persist()` metódust:
2727

2828
```javascript
2929
function handleChange(e) {
3030
// Prevents React from resetting its properties:
3131
e.persist();
3232

3333
setTimeout(() => {
34-
console.log(e.target.value); // Works
34+
console.log(e.target.value); // Ez működik
3535
}, 100);
3636
}
3737
```

0 commit comments

Comments
 (0)