Skip to content

Commit 12c7814

Browse files
authored
Update synchronizing-with-effects.md
1 parent c33297b commit 12c7814

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -618,17 +618,9 @@ React ইচ্ছাকৃতভাবে আপনার কম্পোনে
618618
619619
যখন ইউজার navigate করে চলে যায়, connection তখনও বন্ধ হয়না এবং যখন তারা আবার ফিরে আসে, একটি নতুন connection তৈরি হয়। User যখন app জুড়ে navigate করে, connection গুলো জমতে থাকবে, ঠিক যেমনটি এই "fix" এর আগে জমতে থাকতো।
620620
621-
<<<<<<< HEAD
622621
Bug টি fix করতে, শুধুমাত্র Effect কে একবার run করানোই যথেষ্ট নয়। Effect কে re-mounting এর পর কাজ করতে হবে, যার মানে হলো connection কে উপরের solution এর মতো clean up করতে হবে।
623622
624623
কমন pattern গুলো কীভাবে handle করতে হয় তার জন্য নিচের উদাহরণগুলো দেখুন।
625-
=======
626-
When the user navigates away, the connection still isn't closed and when they navigate back, a new connection is created. As the user navigates across the app, the connections would keep piling up, the same as it would before the "fix".
627-
628-
To fix the bug, it is not enough to just make the Effect run once. The effect needs to work after re-mounting, which means the connection needs to be cleaned up like in the solution above.
629-
630-
See the examples below for how to handle common patterns.
631-
>>>>>>> 366b5fbdadefecbbf9f6ef36c0342c083248c691
632624
633625
</Pitfall>
634626

0 commit comments

Comments
 (0)