Skip to content

Commit 33886a2

Browse files
committed
translate setting the status code section
1 parent 0472ac4 commit 33886a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ const { pipe } = renderToPipeableStream(<App />, {
469469
});
470470
```
471471
472-
If a component *outside* the shell (i.e. inside a `<Suspense>` boundary) throws an error, React will not stop rendering. This means that the `onError` callback will fire, but you will still get `onShellReady` instead of `onShellError`. This is because React will try to recover from that error on the client, [as described above.](#recovering-from-errors-outside-the-shell)
472+
যদি shell এর *বাইরের* (অর্থাৎ কোনো `<Suspense>` boundary এর ভিতরে থাকা) কোনো component একটি error throw করে, React রেন্ডারিং থামাবে না। এর মানে `onError` callback ফায়ার হবে, কিন্তু তারপরও আপনি `onShellError` এর বদলে `onShellReady` পাবেন। কারণ React ওই error থেকে client এ রিকভার করার চেষ্টা করবে, [উপরে যেমন ব্যাখ্যা করা হয়েছে।](#recovering-from-errors-outside-the-shell)
473473
474-
However, if you'd like, you can use the fact that something has errored to set the status code:
474+
তবে চাইলে, কোনো কিছু error হয়েছে—এই তথ্যটি ব্যবহার করে আপনি status code সেট করতে পারেন:
475475
476476
```js {1,6,16}
477477
let didError = false;
@@ -496,7 +496,7 @@ const { pipe } = renderToPipeableStream(<App />, {
496496
});
497497
```
498498
499-
This will only catch errors outside the shell that happened while generating the initial shell content, so it's not exhaustive. If knowing whether an error occurred for some content is critical, you can move it up into the shell.
499+
এটি শুধুমাত্র initial shell কনটেন্ট তৈরি হওয়ার সময় shell-এর *বাইরে* ঘটে যাওয়া error গুলো ধরবে, তাই এটি পূর্ণাঙ্গ (exhaustive) নয়। যদি কোনো নির্দিষ্ট কনটেন্টে error হয়েছে কি না জানা অত্যন্ত গুরুত্বপূর্ণ হয়, তাহলে সেই কনটেন্টকে shell-এর ভেতরে নিয়ে আসুন।
500500
501501
---
502502

0 commit comments

Comments
 (0)