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/useSyncExternalStore.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,11 +241,11 @@ function subscribe(callback) {
241
241
242
242
---
243
243
244
-
### Extracting the logic to a custom Hook {/*extracting-the-logic-to-a-custom-hook*/}
244
+
### কোনো কাস্টম হুকে লজিক এক্সট্র্যাক্ট করা {/*extracting-the-logic-to-a-custom-hook*/}
245
245
246
-
Usually you won't write `useSyncExternalStore`directly in your components. Instead, you'll typically call it from your own custom Hook. This lets you use the same external store from different components.
246
+
সাধারণত আপনি আপনার কম্পোনেন্টে সরাসরি `useSyncExternalStore`লিখবেন না। এর পরিবর্তে, আপনার নিজস্ব কাস্টম হুক থেকে এটি কল করাটাই সচরাচর ব্যবহৃত হয়। এটি আপনাকে বিভিন্ন কম্পোনেন্টে একই এক্সটার্নাল স্টোর ব্যবহার করতে দেয়।
247
247
248
-
For example, this custom`useOnlineStatus`Hook tracks whether the network is online:
248
+
উদাহরণস্বরূপ, এই কাস্টম`useOnlineStatus`হুকটি ট্র্যাক করে যে নেটওয়ার্কটি অনলাইনে আছে কি না:
249
249
250
250
```js {3,6}
251
251
import { useSyncExternalStore } from'react';
@@ -264,7 +264,7 @@ function subscribe(callback) {
264
264
}
265
265
```
266
266
267
-
Now different components can call `useOnlineStatus`without repeating the underlying implementation:
267
+
এখন বিভিন্ন কম্পোনেন্ট কোনো ভেতরের ইমপ্লিমেন্টেশনের পুনরাবৃত্তি ছাড়াই `useOnlineStatus`কে কল করতে পারবে:
0 commit comments