Skip to content

Commit 79c8dd0

Browse files
translate paragraphs in useDeferredValue
1 parent 8573ac0 commit 79c8dd0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/content/reference/react/useDeferredValue.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ function SearchPage() {
3636

3737
#### Parametreler {/*parameters*/}
3838

39-
* `value`: The value you want to defer. It can have any type.
40-
* **optional** `initialValue`: A value to use during the initial render of a component. If this option is omitted, `useDeferredValue` will not defer during the initial render, because there's no previous version of `value` that it can render instead.
39+
* `value`: Ertelemek istediğiniz değer. Herhangi bir türde olabilir.
40+
* **isteğe bağlı** `initialValue`: Bir bileşenin ilk render'ı sırasında kullanılacak bir değer. Bu seçenek atlanırsa, `useDeferredValue` ilk render sırasında erteleme yapmaz, çünkü yerine render edebileceği bir önceki `value` versiyonu yoktur.
4141

4242

4343
#### Dönüş değeri {/*returns*/}
4444

45-
- `currentValue`: During the initial render, the returned deferred value will be the `initialValue`, or 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).
45+
- `currentValue`: İlk render sırasında, döndürülen ertelenmiş değer `initialValue` olacaktır veya sağladığınız değerle aynı olur. Güncellemeler sırasında, React önce eski değerle yeniden render yapmayı dener (bu yüzden eski değeri döndürecektir), ardından arka planda yeni değerle bir başka yeniden render yapmayı dener (bu yüzden güncellenmiş değeri döndürecektir).
4646

4747
#### Dikkat edilmesi gerekenler {/*caveats*/}
4848

@@ -146,9 +146,9 @@ export default function SearchResults({ query }) {
146146
```
147147

148148
```js src/data.js hidden
149-
// Note: the way you would do data fetching depends on
150-
// the framework that you use together with Suspense.
151-
// Normally, the caching logic would be inside a framework.
149+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
150+
// ve Suspense ile birlikte çalışır.
151+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
152152

153153
let cache = new Map();
154154

@@ -163,12 +163,12 @@ async function getData(url) {
163163
if (url.startsWith('/search?q=')) {
164164
return await getSearchResults(url.slice('/search?q='.length));
165165
} else {
166-
throw Error('Not implemented');
166+
throw Error('Uygulanmadı');
167167
}
168168
}
169169

170170
async function getSearchResults(query) {
171-
// Add a fake delay to make waiting noticeable.
171+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
172172
await new Promise(resolve => {
173173
setTimeout(resolve, 1000);
174174
});
@@ -316,9 +316,9 @@ export default function SearchResults({ query }) {
316316
```
317317

318318
```js src/data.js hidden
319-
// Note: the way you would do data fetching depends on
320-
// the framework that you use together with Suspense.
321-
// Normally, the caching logic would be inside a framework.
319+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
320+
// ve Suspense ile birlikte çalışır.
321+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
322322

323323
let cache = new Map();
324324

@@ -338,7 +338,7 @@ async function getData(url) {
338338
}
339339

340340
async function getSearchResults(query) {
341-
// Add a fake delay to make waiting noticeable.
341+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
342342
await new Promise(resolve => {
343343
setTimeout(resolve, 1000);
344344
});
@@ -500,9 +500,9 @@ export default function SearchResults({ query }) {
500500
```
501501

502502
```js src/data.js hidden
503-
// Note: the way you would do data fetching depends on
504-
// the framework that you use together with Suspense.
505-
// Normally, the caching logic would be inside a framework.
503+
// Not: Veri çekme işlemi, birlikte kullandığınız framework'e bağlıdır
504+
// ve Suspense ile birlikte çalışır.
505+
// Normalde, önbellekleme mantığı bir framework içinde yer alır.
506506

507507
let cache = new Map();
508508

@@ -522,7 +522,7 @@ async function getData(url) {
522522
}
523523

524524
async function getSearchResults(query) {
525-
// Add a fake delay to make waiting noticeable.
525+
// Beklemeyi fark edilebilir hale getirmek için sahte bir gecikme ekleyin.
526526
await new Promise(resolve => {
527527
setTimeout(resolve, 1000);
528528
});
@@ -673,7 +673,7 @@ export default function App() {
673673
import { memo } from 'react';
674674

675675
const SlowList = memo(function SlowList({ text }) {
676-
// Log once. The actual slowdown is inside SlowItem.
676+
// Bir kez logla. Gerçek yavaşlama SlowItem içinde.
677677
console.log('[ARTIFICIALLY SLOW] Rendering 250 <SlowItem />');
678678

679679
let items = [];
@@ -690,7 +690,7 @@ const SlowList = memo(function SlowList({ text }) {
690690
function SlowItem({ text }) {
691691
let startTime = performance.now();
692692
while (performance.now() - startTime < 1) {
693-
// Do nothing for 1 ms per item to emulate extremely slow code
693+
// Her öğe için 1 ms hiçbir şey yapma, aşırı yavaş kodu taklit etmek için.
694694
}
695695

696696
return (

0 commit comments

Comments
 (0)