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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Client-side এ, server-generated HTML কে ইন্টার্যাক
44
44
45
45
[নিচে আরও উদাহরণ দেখুন।](#usage)
46
46
47
-
#### Parameters {/*parameters*/}
47
+
#### প্যারামিটারস {/*parameters*/}
48
48
49
49
* `reactNode`: একটি React node যেটিকে আপনি HTML এ রেন্ডার করতে চান। উদাহরণস্বরূপ, `<App />` এর মতো একটি JSX element । এটা এক্সপেক্টেড যে, এটি পুরো document কে ধারণ করবে, তাই `App` কম্পোনেটটির `<html>` ট্যাগ রেন্ডার করার কথা।
50
50
@@ -56,10 +56,10 @@ Client-side এ, server-generated HTML কে ইন্টার্যাক
56
56
* **optional** `namespaceURI`: stream এর জন্য root [namespace URI](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS#important_namespace_uris) এর একটি string । ডিফল্টভাবে এটি regular HTML । SVG এর জন্য `'http://www.w3.org/2000/svg'` অথবা MathML এর জন্য `'http://www.w3.org/1998/Math/MathML'` পাস করুন।
57
57
* **optional** `nonce`: [`script-src` Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src) এর জন্য script গুলোকে allow করতে একটি [`nonce`](http://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#nonce) string।
58
58
* **optional** `onAllReady`: একটি callback যেটি সকল rendering কমপ্লিট হওয়ার পর ফায়ার হয়, [shell](#specifying-what-goes-into-the-shell) এবং সকল অতিরিক্ত [content](#streaming-more-content-as-it-loads) সহ। [crawler এবং static generation এর জন্য](#waiting-for-all-content-to-load-for-crawlers-and-static-generation) আপনি `onShellReady` এর পরিবর্তে এটি ব্যবহার করতে পারেন। যদি আপনি এখানে streaming শুরু করেন, তাহলে আপনি কোনো progressive loading পাবেন না। stream টিতে final HTML থাকবে।
59
-
* **optional** `onError`: A callback that fires whenever there is a server error, whether [recoverable](#recovering-from-errors-outside-the-shell) or [not.](#recovering-from-errors-inside-the-shell) By default, this only calls `console.error`. If you override it to [log crash reports,](#logging-crashes-on-the-server) make sure that you still call `console.error`. You can also use it to [adjust the status code](#setting-the-status-code) before the shell is emitted.
60
-
* **optional** `onShellReady`: A callback that fires right after the [initial shell](#specifying-what-goes-into-the-shell) has been rendered. You can [set the status code](#setting-the-status-code) and call `pipe`here to start streaming. React will [stream the additional content](#streaming-more-content-as-it-loads) after the shell along with the inline `<script>`tags that replace the HTML loading fallbacks with the content.
61
-
* **optional** `onShellError`: A callback that fires if there was an error rendering the initial shell. It receives the error as an argument. No bytes were emitted from the stream yet, and neither `onShellReady`nor`onAllReady`will get called, so you can [output a fallback HTML shell.](#recovering-from-errors-inside-the-shell)
62
-
* **optional** `progressiveChunkSize`: The number of bytes in a chunk. [Read more about the default heuristic.](https://github.com/facebook/react/blob/14c2be8dac2d5482fda8a0906a31d239df8551fc/packages/react-server/src/ReactFizzServer.js#L210-L225)
59
+
* **optional** `onError`: একটি callback যেটি যেকোনো server error হলে ফায়ার হয়, [recoverable](#recovering-from-errors-outside-the-shell) হোক বা [না হোক](#recovering-from-errors-inside-the-shell)। By default, এটি শুধু `console.error` কল করে। যদি আপনি [crash report log করার জন্য](#logging-crashes-on-the-server) এটি override করেন, তাহলে নিশ্চিত করুন যে আপনি তখনো `console.error` কল করতে পারছেন। এছাড়াও shell emit হওয়ার আগে [status code adjust করতে](#setting-the-status-code) এটি ব্যবহার করতে পারেন।
60
+
* **optional** `onShellReady`: একটি callback যেটি [initial shell](#specifying-what-goes-into-the-shell) render হওয়ার ঠিক পরেই ফায়ার হয়। আপনি এখানে [status code set করতে](#setting-the-status-code) এবং streaming শুরু করতে `pipe`কল করতে পারেন। React shell এর পর [অতিরিক্ত content stream করবে](#streaming-more-content-as-it-loads) inline `<script>`tag সহ যেগুলো HTML loading fallback গুলোকে content দিয়ে replace করে।
61
+
* **optional** `onShellError`: একটি callback যেটি initial shell render করতে error হলে ফায়ার হয়। এটি error কে argument হিসেবে receive করে। এখনো stream থেকে কোনো byte emit হয়নি, এবং `onShellReady`বা`onAllReady`কোনোটিই call হবে না, তাই আপনি [একটি fallback HTML shell output করতে পারেন](#recovering-from-errors-inside-the-shell)।
62
+
* **optional** `progressiveChunkSize`: একটি chunk এ byte এর সংখ্যা। [default heuristic সম্পর্কে আরো পড়ুন।](https://github.com/facebook/react/blob/14c2be8dac2d5482fda8a0906a31d239df8551fc/packages/react-server/src/ReactFizzServer.js#L210-L225)
0 commit comments