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/useTransition.md
+3-13Lines changed: 3 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1676,13 +1676,7 @@ startTransition(() => {
1676
1676
});
1677
1677
```
1678
1678
1679
-
<<<<<<< HEAD
1680
-
`startTransition` এ আপনি যে ফাংশন পাস করবেন তা অবশ্যই একই সময়ে হতে হবে।
1681
-
1682
-
আপনি এভাবে একটি আপডেটকে ট্রানজিশন হিসেবে চিহ্নিত করতে পারবেন না:
1683
-
=======
1684
-
The function you pass to `startTransition` must be synchronous. You can't mark an update as a Transition like this:
1685
-
>>>>>>> 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
1679
+
`startTransition` এ আপনি যে ফাংশন পাস করবেন তা অবশ্যই সিঙ্ক্রোনাস হতে হবে। আপনি এভাবে একটি আপডেটকে ট্রানজিশন হিসেবে চিহ্নিত করতে পারবেন না:
1686
1680
1687
1681
```js
1688
1682
startTransition(() => {
@@ -1704,15 +1698,11 @@ setTimeout(() => {
1704
1698
}, 1000);
1705
1699
```
1706
1700
1707
-
<<<<<<< HEAD
1708
-
একইভাবে, আপনি একটি আপডেটকে এইরকম ট্রানজিশন হিসেবে চিহ্নিত করতে পারবেন না:
1709
-
=======
1710
1701
---
1711
1702
1712
-
### React doesn't treat my state update after `await` as a Transition {/*react-doesnt-treat-my-state-update-after-await-as-a-transition*/}
1703
+
### React আমার `await` এর পরে state update কে ট্রানজিশন হিসেবে বিবেচনা করছে না {/*react-doesnt-treat-my-state-update-after-await-as-a-transition*/}
1713
1704
1714
-
When you use `await` inside a `startTransition` function, the state updates that happen after the `await` are not marked as Transitions. You must wrap state updates after each `await` in a `startTransition` call:
1715
-
>>>>>>> 50d6991ca6652f4bc4c985cf0c0e593864f2cc91
1705
+
যখন আপনি `startTransition` ফাংশনের মধ্যে `await` ব্যবহার করেন, তখন `await` এর পরে ঘটে যাওয়া state update গুলো ট্রানজিশন হিসেবে চিহ্নিত হয় না। আপনাকে প্রতিটি `await` এর পরে state update গুলোকে একটি `startTransition` কলের মধ্যে মোড়াতে হবে:
0 commit comments