Skip to content

Commit 2ac0708

Browse files
committed
translate server crash logging and error recovery sections
1 parent 4e802e7 commit 2ac0708

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/reference/react-dom/server/renderToPipeableStream.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ const { pipe } = renderToPipeableStream(<App />, {
350350
351351
---
352352
353-
### Logging crashes on the server {/*logging-crashes-on-the-server*/}
353+
### Server এ crash log করা {/*logging-crashes-on-the-server*/}
354354
355-
By default, all errors on the server are logged to console. You can override this behavior to log crash reports:
355+
স্বাভাবিকভাবে, সার্ভারের সকল error console এ log হয়। আপনি ক্র্যাশ রিপোর্ট log করতে এই আচরণ পরিবর্তন করতে পারেন:
356356
357357
```js {7-10}
358358
const { pipe } = renderToPipeableStream(<App />, {
@@ -368,13 +368,13 @@ const { pipe } = renderToPipeableStream(<App />, {
368368
});
369369
```
370370
371-
If you provide a custom `onError` implementation, don't forget to also log errors to the console like above.
371+
যদি আপনি একটি custom `onError` implementation প্রদান করেন, উপরের মতো console এ error log করতে ভুলবেন না।
372372
373373
---
374374
375-
### Recovering from errors inside the shell {/*recovering-from-errors-inside-the-shell*/}
375+
### Shell এর ভিতরের error থেকে রিকভার করা {/*recovering-from-errors-inside-the-shell*/}
376376
377-
In this example, the shell contains `ProfileLayout`, `ProfileCover`, and `PostsGlimmer`:
377+
এই উদাহরণে, shell `ProfileLayout`, `ProfileCover`, এবং `PostsGlimmer` রয়েছেঃ
378378
379379
```js {3-5,7-8}
380380
function ProfilePage() {
@@ -389,7 +389,7 @@ function ProfilePage() {
389389
}
390390
```
391391
392-
If an error occurs while rendering those components, React won't have any meaningful HTML to send to the client. Override `onShellError` to send a fallback HTML that doesn't rely on server rendering as the last resort:
392+
যদি এই component গুলো render করার সময় error হয়, React এর client এ পাঠানোর জন্য কোনো বোধগম্য HTML থাকবে না। শেষ অবলম্বন হিসেবে server rendering এ নির্ভর করে না এমন একটি fallback HTML পাঠাতে `onShellError` override করুনঃ
393393
394394
```js {7-11}
395395
const { pipe } = renderToPipeableStream(<App />, {
@@ -410,7 +410,7 @@ const { pipe } = renderToPipeableStream(<App />, {
410410
});
411411
```
412412
413-
If there is an error while generating the shell, both `onError` and `onShellError` will fire. Use `onError` for error reporting and use `onShellError` to send the fallback HTML document. Your fallback HTML does not have to be an error page. Instead, you may include an alternative shell that renders your app on the client only.
413+
যদি shell generate করার সময় error হয়, `onError` এবং `onShellError` উভয়ই ফায়ার করবে। Error reporting এর জন্য `onError` ব্যবহার করুন এবং fallback HTML document পাঠানোর জন্য `onShellError` ব্যবহার করুন। আপনার fallback HTML একটি error page হতে হবে এমন না। বরং, আপনি একটি বিকল্প shell z যুক্ত করতে পারেন যেটি শুধু client এ আপনার অ্যাপ রেন্ডার করে।
414414
415415
---
416416

0 commit comments

Comments
 (0)