Skip to content

Commit 7618ff0

Browse files
committed
Translate full Challenges/Fix an interval that fires twice
1 parent 5dc4671 commit 7618ff0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ body {
14311431
14321432
</Sandpack>
14331433
1434-
In development, React will still remount your component once to verify that you've implemented cleanup well. So there will be a `setInterval` call, immediately followed by `clearInterval`, and `setInterval` again. In production, there will be only one `setInterval` call. The user-visible behavior in both cases is the same: the counter increments once per second.
1434+
ডেভেলপমেন্টে, React এখনও আপনার কম্পোনেন্টটিকে একবার রিমাউন্ট করবে এটা যাচাই করতে যে আপনি ক্লিনআপ ভালভাবে ইমপ্লেমেন্ট করেছেন কিনা। তাই একটি `setInterval` কল হবে, তারপর সাথে সাথে `clearInterval`, এবং আবার `setInterval`। প্রোডাকশনে, কেবল একটি `setInterval` কল হবে। উভয় ক্ষেত্রেই ইউজারের-কাছে-দৃশ্যমান আচরণ একই থাকবেঃ কাউন্টার প্রতি সেকেন্ডে একবার বাড়বে।
14351435
14361436
</Solution>
14371437

0 commit comments

Comments
 (0)