KamoCRM

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

Fixkamo-internal
Spegnimento
11 marzo 2026 alle ore 20:04 UTC
Autore
kamo
Impegno
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.

Tutte le modifiche

Come quello che vedi la spedizione?

Tutto questo arriva nel vostro spazio di lavoro da solo. Iniziare sul piano gratuito e leggere di nuovo questa pagina in un mese.

Inizia gratis per sempreVisualizza il prezzo