Dispatch member-panel-toggle via useEffect to avoid stale Framer Motion closure

Fixkamo-internal
ส่งแล้ว
11 มีนาคม 2569 เวลา 20:04 UTC
ผู้เขียน
kamo
ตั้งค่า
8b1561e

onAnimationStart/Complete hold the last rendered props, so the exit animation always saw isOpen=true and windows never relayed to the right on close. Using a useEffect on isOpen fires immediately when the prop changes, so tool windows start moving as soon as the panel begins animating away.

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

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

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

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