KamoCRM

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

Fixkamo-internal
Shipped
11 மார்ச், 2026 அன்று 8:04 PM UTC
Author
kamo
Commit
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.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing