KamoCRM

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

Fixkamo-internal
Змішані
11 березня 2026 р. о 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.

Всі зміни

Як ви бачите відправлення?

Все це прибуває в робочому просторі. Почати безкоштовно план і читати цю сторінку знову в місяць.

БезкоштовноПерегляд цін