Use ref for memberPanelOpen in openChat to prevent stale closure

Fixkamo-internal
ส่งแล้ว
11 มีนาคม 2569 เวลา 00:21 UTC
ผู้เขียน
kamo
ตั้งค่า
b380a54

When a user opens the member panel, clicks a member to chat, then closes the panel before the async session API call returns, the chat window was positioned with a 500px offset as if the panel were still open. This happened because openChat captured memberPanelOpen via closure at call time. Using a ref ensures the current panel state is read after the await.

เปลี่ยนแปลงทั้งหมด

เหมือนที่คุณเห็นการขนส่ง?

ทุก คน ที่ ได้ รับ การ ปรับ ปรุง เหล่า นี้ จะ ลง ไป ใน ที่ ทํา งาน ของ คุณ โดย อัตโนมัติ. เริ่มให้อิสระและดูมันเติบโตสัปดาห์แล้วสัปดาห์เล่า.

เริ่ม เป็น อิสระ ตลอด ไปแสดงพริ้นซ์