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/server/renderToPipeableStream.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ function ProfilePage() {
234
234
}
235
235
```
236
236
237
-
ধরুন যে `<Posts />` এর জন্য data লোড হতে কিছু সময় লাগে। স্বাভাবিকভাবে, আপনি post এর জন্য অপেক্ষা না করে user কে profile page এর বাকি content দেখাতে চাইবেন। এটি করতে, [`Posts` কে একটি `<Suspense>` boundary তে wrap করুন:](/reference/react/Suspense#displaying-a-fallback-while-content-is-loading)
237
+
ধরুন যে `<Posts />` এর জন্য data লোড হতে কিছু সময় লাগে। স্বাভাবিকভাবে, আপনি post এর জন্য অপেক্ষা না করে user কে profile page এর বাকি content দেখাতে চাইবেন। এটি করতে, [`Posts` কে একটি `<Suspense>` boundary তে wrap করুনঃ](/reference/react/Suspense#displaying-a-fallback-while-content-is-loading)
238
238
239
239
```js {9,11}
240
240
functionProfilePage() {
@@ -255,7 +255,7 @@ function ProfilePage() {
255
255
256
256
এটি React কে `Posts` এর data লোড হওয়ার আগেই HTML streaming শুরু করতে বলে। React প্রথমে loading fallback (`PostsGlimmer`) এর জন্য HTML পাঠাবে, এবং তারপর, যখন `Posts` এর data লোডিং শেষ হবে, React বাকি HTML পাঠাবে একটি inline `<script>` tag সহ যেটি লোডিং fallback কে সেই HTML দিয়ে replace করবে। ইউজারের দৃষ্টিকোণ থেকে, page প্রথমে `PostsGlimmer` নিয়ে দেখাবে, পরে `Posts` দিয়ে রিপ্লেস হবে।
257
257
258
-
আরও granular loading sequence তৈরি করতে আপনি আরও [nested `<Suspense>` boundary](/reference/react/Suspense#revealing-nested-content-as-it-loads) যোগ করতে পারেন:
258
+
আরও granular loading sequence তৈরি করতে আপনি আরও [nested `<Suspense>` boundary](/reference/react/Suspense#revealing-nested-content-as-it-loads) যোগ করতে পারেনঃ
259
259
260
260
```js {5,13}
261
261
functionProfilePage() {
@@ -300,9 +300,9 @@ Opinionated framework ব্যবহার ছাড়া Suspense-enabled ড
300
300
301
301
---
302
302
303
-
### Specifying what goes into the shell {/*specifying-what-goes-into-the-shell*/}
303
+
### Shell এ কী যাবে তা নির্দিষ্ট করা {/*specifying-what-goes-into-the-shell*/}
304
304
305
-
The part of your app outside of any `<Suspense>`boundaries is called *the shell:*
305
+
আপনার app এর `<Suspense>`boundary এর বাইরের যেকোনো অংশকে বলা হয় *shell:*
306
306
307
307
```js {3-5,13,14}
308
308
functionProfilePage() {
@@ -323,7 +323,7 @@ function ProfilePage() {
323
323
}
324
324
```
325
325
326
-
It determines the earliest loading state that the user may see:
326
+
এটা ঠিক করে দেয় যে ইউজার প্রথমে কোন loading state টি দেখতে পারেঃ
327
327
328
328
```js {3-5,13
329
329
<ProfileLayout>
@@ -332,9 +332,9 @@ It determines the earliest loading state that the user may see:
332
332
</ProfileLayout>
333
333
```
334
334
335
-
If you wrap the whole app into a`<Suspense>` boundary at the root, the shell will only contain that spinner. However, that's not a pleasant user experience because seeing a big spinner on the screen can feel slower and more annoying than waiting a bit more and seeing the real layout. This is why usually you'll want to place the `<Suspense>`boundaries so that the shell feels *minimal but complete*--like a skeleton of the entire page layout.
335
+
যদি আপনি root এ পুরো app কে একটি`<Suspense>` boundary তে wrap করেন, shell এ শুধু সেই spinner থাকবে। তবে, এটি একটি সুন্দর user experience না কারণ screen এ একটি বড় spinner দেখা আরো slow এবং বিরক্তিকর মনে হতে পারে একটু বেশি অপেক্ষা করে আসল layout দেখার চেয়ে। এই কারণেই সাধারণত আপনি `<Suspense>`boundary গুলো এমনভাবে রাখবেন যাতে shell *নুন্যতম কিন্তু সম্পূর্ণ* মনে হয়--পুরো page layout এর একটি skeleton এর মতো।
336
336
337
-
The `onShellReady` callback fires when the entire shell has been rendered. Usually, you'll start streaming then:
337
+
`onShellReady` callback পুরো shell render হওয়ার পর ফায়ার হয়। সাধারণত, আপনি তখনই streaming শুরু করবেনঃ
0 commit comments