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/learn/extracting-state-logic-into-a-reducer.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2439,7 +2439,7 @@ textarea {
2439
2439
2440
2440
<Solution>
2441
2441
2442
-
Dispatching an action calls a reducer with the current state and the action, and stores the result as the next state. This is what it looks like in code:
2442
+
একটি action কে dispatch করলে তা বর্তমান স্টেট এবং action টি নিয়ে reducer কে কল করে, এবং প্রাপ্ত ফলাফলটিকে পরবর্তী স্টেট হিসেবে ব্যাবহার করে। কোডে এটা এমন দেখাবেঃ
2443
2443
2444
2444
<Sandpack>
2445
2445
@@ -2614,15 +2614,15 @@ textarea {
2614
2614
2615
2615
</Sandpack>
2616
2616
2617
-
Though it doesn't matter in most cases, a slightly more accurate implementation looks like this:
2617
+
যদিও অধিকাংশ ক্ষেত্রে তেমন কিছু আসে যায় না, তবে এর আরেকটু সঠিক সমাধান হবেঃ
2618
2618
2619
2619
```js
2620
2620
functiondispatch(action) {
2621
2621
setState((s) =>reducer(s, action));
2622
2622
}
2623
2623
```
2624
2624
2625
-
This is because the dispatched actions are queued until the next render, [similar to the updater functions.](/learn/queueing-a-series-of-state-updates)
2625
+
এর কারণ dispatch করা action গুলো পরবর্তী রেন্ডার পর্যন্ত সারিবদ্ধভাবে দাঁড় করিয়ে রাখা হয়, [updater functions এর মতো।](/learn/queueing-a-series-of-state-updates)
0 commit comments