在 react StrictMode 中添加的动画不工作(或者在任何其他情况下,autoAnimate() 被调用两次)
作者: Zachary3234创建于 2026年1月11日更新于 2026年4月26日
I found that auto-animate did not work in react StrictMode initially, which rendered the component twice to help find bugs. So I tested and found that adding animation will fail if autoAnimate is called twice (removing animation is fine). Here's a minimal example:
内容来源: formkit/auto-animate