Skip to content

Commit 7b8852b

Browse files
committed
translate Recovering from errors outside the shell section
1 parent 2ac0708 commit 7b8852b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ const { pipe } = renderToPipeableStream(<App />, {
414414
415415
---
416416
417-
### Recovering from errors outside the shell {/*recovering-from-errors-outside-the-shell*/}
417+
### Shell এর বাইরের error থেকে রিকভার করা {/*recovering-from-errors-outside-the-shell*/}
418418
419-
In this example, the `<Posts />` component is wrapped in `<Suspense>` so it is *not* a part of the shell:
419+
এই উদাহরণে, `<Posts />` component টি `<Suspense>` এর মধ্যে রয়েছে তাই এটি shell এর *অংশ নয়*:
420420
421421
```js {6}
422422
function ProfilePage() {
@@ -431,15 +431,15 @@ function ProfilePage() {
431431
}
432432
```
433433
434-
If an error happens in the `Posts` component or somewhere inside it, React will [try to recover from it:](/reference/react/Suspense#providing-a-fallback-for-server-errors-and-client-only-content)
434+
যদি `Posts` component বা এর ভিতরে কোথাও একটি error ঘটে, React [এর থেকে রিকভার করার চেষ্টা করবেঃ](/reference/react/Suspense#providing-a-fallback-for-server-errors-and-client-only-content)
435435
436-
1. It will emit the loading fallback for the closest `<Suspense>` boundary (`PostsGlimmer`) into the HTML.
437-
2. It will "give up" on trying to render the `Posts` content on the server anymore.
438-
3. When the JavaScript code loads on the client, React will *retry* rendering `Posts` on the client.
436+
1. এটি নিকটতম `<Suspense>` boundary (`PostsGlimmer`) এর জন্য loading fallback HTML এ emit করবে।
437+
2. এটি আর সার্ভারে `Posts` কনটেন্ট রেন্ডার করার চেষ্টা করবে না।
438+
3. যখন JavaScript কোড ক্লায়েন্টে লোড হয়, React ক্লায়েন্টে `Posts` রেন্ডার করার জন্য *পুনরায় চেষ্টা করবে*।
439439
440-
If retrying rendering `Posts` on the client *also* fails, React will throw the error on the client. As with all the errors thrown during rendering, the [closest parent error boundary](/reference/react/Component#static-getderivedstatefromerror) determines how to present the error to the user. In practice, this means that the user will see a loading indicator until it is certain that the error is not recoverable.
440+
যদি `Posts` ক্লায়েন্টে রেন্ডার করার জন্য পুনরায় চেষ্টা করাও ব্যর্থ হয়, React ক্লায়েন্টে error টি throw করবে। রেন্ডারিংয়ের সময় throw হওয়া সব error এর মতো, [closest parent error boundary](/reference/react/Component#static-getderivedstatefromerror) নির্ধারণ করে কিভাবে ইউজারের কাছে error টি উপস্থাপন করতে হবে। বাস্তবে, এর মানে হল যে ইউজার একটি লোডিং ইন্ডিকেটর দেখতে পাবে যতক্ষণ না এটি নিশ্চিত হয় যে error টি recoverable না।
441441
442-
If retrying rendering `Posts` on the client succeeds, the loading fallback from the server will be replaced with the client rendering output. The user will not know that there was a server error. However, the server `onError` callback and the client [`onRecoverableError`](/reference/react-dom/client/hydrateRoot#hydrateroot) callbacks will fire so that you can get notified about the error.
442+
যদি retrying এর সময় client এ `Posts` render করা সফল হয়, সার্ভারের loading fallback টি client এ রেন্ডার করা আউটপুট দিয়ে replace হবে। User জানবে না যে server error হয়েছিল। তবে, server `onError` callback এবং client [`onRecoverableError`](/reference/react-dom/client/hydrateRoot#hydrateroot) callback গুলো ফায়ার হবে যাতে আপনি error সম্পর্কে notified হতে পারেন।
443443
444444
---
445445

0 commit comments

Comments
 (0)