You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/react-dom/client/createRoot.md
+69-67Lines changed: 69 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,9 +45,9 @@ Tamamen React ile oluşturulmuş bir uygulama genellikle kök bileşeni için ya
45
45
46
46
* **opsiyonel** `options`: Bu React kökü için seçenekler içeren bir nesne.
47
47
48
-
* <CanaryBadge title="This feature is only available in the Canary channel" /> **optional** `onCaughtError`: Callback called when React catches an error in an Error Boundary. Called with the `error`caught by the Error Boundary, and an `errorInfo`object containing the `componentStack`.
49
-
* <CanaryBadge title="This feature is only available in the Canary channel" /> **optional** `onUncaughtError`: Callback called when an error is thrown and not caught by an Error Boundary. Called with the `error` that was thrown, and an `errorInfo`object containing the `componentStack`.
50
-
* **optional** `onRecoverableError`: React'in hatalardan otomatik olarak kurtulduğunda çağrılan callback fonksiyonu. Called with an`error`React throws, and an`errorInfo`object containing the `componentStack`. Some recoverable errors may include the original error cause as `error.cause`.
48
+
* <CanaryBadge title="Bu özellik yalnızca Canary kanalında mevcuttur" /> **opsiyonel** `onCaughtError`: React bir Hata yakalayıcı bir hata yakaladığında callback yapılır. Hata yakalayıcı tarafından yakalanan `error`ve `componentStack` içeren bir `errorInfo`nesnesi ile çağrılır.
49
+
* <CanaryBadge title="This feature is only available in the Canary channel" /> **opsiyonel** Bir hata fırlatıldığında ve bir Hata yakalayıcı tarafından yakalanmadığında callback yapılır. Atılan hata ve `componentStack`'i içeren bir `errorInfo`nesnesi ile çağrılır.
50
+
* **opsiyonel** `onRecoverableError`: React'in hatalardan otomatik olarak kurtulduğunda çağrılan callback fonksiyonu. React'in attığı bir`error`ve `componentStack` içeren bir`errorInfo`nesnesi ile çağrılır. Bazı kurtarılabilir hatalar, `error.cause` olarak orijinal hata nedenini içerebilir.
51
51
* **opsiyonel** `identifierPrefix`: [`useId`](/reference/react/useId) tarafından oluşturulan kimlikler için React'in kullandığı bir dize öneki. Aynı sayfada birden fazla kök kullanırken çakışmaları önlemek için kullanışlıdır.
52
52
53
53
@@ -345,15 +345,15 @@ export default function App({counter}) {
345
345
346
346
Birden fazla kez `render` çağrısı yapmak nadirdir. Genellikle bileşenleriniz bunun yerine [state güncellemesi](/reference/react/useState) yapacaktır.
347
347
348
-
### Show a dialog for uncaught errors {/*show-a-dialog-for-uncaught-errors*/}
348
+
### Yakalanmamış hatalar için bir diyaloğu gösterme {/*show-a-dialog-for-uncaught-errors*/}
349
349
350
350
<Canary>
351
351
352
-
`onUncaughtError`is only available in the latest React Canary release.
352
+
`onUncaughtError`sadece en son React Canary sürümünde mevcuttur.
353
353
354
354
</Canary>
355
355
356
-
By default, React will log all uncaught errors to the console. To implement your own error reporting, you can provide the optional `onUncaughtError` root option:
356
+
Varsayılan olarak, React tüm yakalanmamış hataları konsola kaydeder. Kendi hata raporlamanızı uygulamak için, isteğe bağlı `onUncaughtError` root seçeneğini sağlayabilirsin:
### Hata yakalayıcı ile ilgili hataları görüntüleme {/*displaying-error-boundary-errors*/}
597
598
598
599
<Canary>
599
600
600
-
`onCaughtError`is only available in the latest React Canary release.
601
+
`onCaughtError`sadece en son React Canary sürümünde mevcuttur.
601
602
602
603
</Canary>
603
604
604
-
By default, React will log all errors caught by an Error Boundary to `console.error`. To override this behavior, you can provide the optional `onCaughtError` root option to handle errors caught by an [Error Boundary](/reference/react/Component#catching-rendering-errors-with-an-error-boundary):
605
+
Varsayılan olarak, React bir Hata yakalayıcı tarafından yakalanan tüm hataları `console.error` dosyasına kaydeder. Bu davranışı geçersiz kılmak için, bir Hata yakalayıcı tarafından yakalanan hataları işlemek üzere isteğe bağlı `onCaughtError` kök seçeneğini sağlayabilirsin. [Hata yakalayıcı](/reference/react/Component#catching-rendering-errors-with-an-error-boundary):
### Displaying a dialog for recoverable errors {/*displaying-a-dialog-for-recoverable-errors*/}
881
+
### Kurtarılabilir hatalar için bir diyoloğu görüntüleme {/*displaying-a-dialog-for-recoverable-errors*/}
881
882
882
-
React may automatically render a component a second time to attempt to recover from an error thrown in render. If successful, React will log a recoverable error to the console to notify the developer. To override this behavior, you can provide the optional `onRecoverableError`root option:
883
+
React, render etme sırasında atılan bir hatadan kurtulmayı denemek için bir bileşeni otomatik olarak ikinci kez render edebilir. Başarılı olursa, React geliştiriciyi bilgilendirmek için konsola kurtarılabilir bir hata günlüğü kaydeder. Bu davranışı geçersiz kılmak için, isteğe bağlı `onRecoverableError`kök seçeneğini sağlayabilirsin:
0 commit comments