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
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 করতে ভুলবেন না।
372
372
373
373
---
374
374
375
-
### Recovering from errors inside the shell {/*recovering-from-errors-inside-the-shell*/}
375
+
### Shell এর ভিতরের error থেকে রিকভার করা {/*recovering-from-errors-inside-the-shell*/}
376
376
377
-
In this example, the shell contains`ProfileLayout`, `ProfileCover`, and`PostsGlimmer`:
377
+
এই উদাহরণে, shell এ`ProfileLayout`, `ProfileCover`, এবং`PostsGlimmer` রয়েছেঃ
378
378
379
379
```js {3-5,7-8}
380
380
functionProfilePage() {
@@ -389,7 +389,7 @@ function ProfilePage() {
389
389
}
390
390
```
391
391
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 করুনঃ
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 এ আপনার অ্যাপ রেন্ডার করে।
0 commit comments