-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ShareElement 组件没有入场动画 #17044
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
复现仓库
https://github.com/mushan0x0/taro-demo-1
相关平台
微信小程序
小程序基础库: 3.7.1
使用框架: React
复现步骤
点击 a 页面方块,跳转 b 页面,模拟器偶尔会没有入场动画,真机很容易出现
ScreenRecording_12-17-2024.23-00-14_1.MP4
官方例子不会有这问题
ScreenRecording_12-17-2024.23-02-24_1.MP4
期望结果
b 页面 ShareElement 有入场动画
实际结果
有概率 b 页面 ShareElement 没有入场动画
其他信息
官方文档这里说了有可能是 setData() 动态渲染页面的时候丢了首帧导致的,可能要使用 Component 构造页面用 attached 生命周期来 setData() 不知道 Taro 是不是这样,我试了开启预渲染也没有解决
环境信息
The text was updated successfully, but these errors were encountered: