KamoCRM

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

Fixkamo-internal
已装运
2026年3月11日 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.

所有更改

就像你看到的运输?

所有东西都是靠自己运入你的工作空间的 从免费计划开始,一个月后再读这页.

永远开始自由查看定价