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
+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
@@ -2053,7 +2053,7 @@ textarea {
2053
2053
2054
2054
<Solution>
2055
2055
2056
-
You'll need to update the reducer to store and update a separate message draft per contact:
2056
+
আপনাকে reducer টিতে পরিবর্তন আনতে হবে যাতে আপনি আলাদা আলাদা কন্টাক্টের জন্য আলাদা আলাদা ভাবে ড্রাফট মেসেজ স্টোর এবং আপডেট করতে পারেনঃ
2057
2057
2058
2058
```js
2059
2059
// When the input is edited
@@ -2071,13 +2071,13 @@ case 'edited_message': {
2071
2071
}
2072
2072
```
2073
2073
2074
-
You would also update the`Messenger`component to read the message for the currently selected contact:
2074
+
আপনাকে আরো পরিবর্তন আনতে হবে`Messenger`কম্পোনেন্টটিতে যাতে আপনি বর্তমানে সিলেক্টেড কন্টাক্টটির মেসেজ রিড করতে পারেনঃ
2075
2075
2076
2076
```js
2077
2077
constmessage=state.messages[state.selectedId];
2078
2078
```
2079
2079
2080
-
Here is the complete solution:
2080
+
এখানে পূর্ণাঙ্গ সমাধান দেয়া হলোঃ
2081
2081
2082
2082
<Sandpack>
2083
2083
@@ -2237,7 +2237,7 @@ textarea {
2237
2237
2238
2238
</Sandpack>
2239
2239
2240
-
Notably, you didn't need to change any of the event handlers to implement this different behavior. Without a reducer, you would have to change every event handler that updates the state.
2240
+
উল্লেখ্য, এই নতুন ফিচারটি বাস্তবায়ন করতে আপনাকে কোনো ইভেন্ট হ্যান্ডলারে পরিবর্তন আনতে হবে না। Reducer না হলে আপনাকে, স্টেট আপডেট করে এমন প্রতিটি ইভেন্ট হ্যান্ডলারে পরিবর্তন আনতে হতো।
0 commit comments