We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在热门选项卡中,点击不同的标签时,Tab栏的切换动画会有卡顿现象。
原因可能是请求数据返回的时间少于切换动画的默认时间(300ms),导致组件的重新渲染影响了动画的显示。
尝试加入了300ms的延时,或许可以解决问题
// useFetcher.ts // 对useFetcher的改动影响较大,可以作为参数 const delayPromise = new Promise((resolve, reject) => { try { setTimeout(() => resolve('time end'), 300) } catch (e) { reject(e) } }) Promise.all([service(), delayPromise]).then(([res, end]) => { res .fail(err => { options.fail && options.fail(err) }) .succeed(data => { options.success && options.success(data) setState(data) }) })
The text was updated successfully, but these errors were encountered:
切换动画指的是 Loading 的动画吗 在网络状况非常好的情况下,loading 动画刚刚开始就会被新页面的载入打断,看起来就会有闪烁
或者说指 Tab 动画 如果页面很快就切换了,Tab 的动画也会显得略有延迟
Sorry, something went wrong.
大概这样,有时候没问题
fix #22 热门切换标签卡顿
f701150
* 加载热门列表时延时300ms * 添加了一个useDelay
f701150 渲染时添加了300ms延时
AsukaSong
No branches or pull requests
在热门选项卡中,点击不同的标签时,Tab栏的切换动画会有卡顿现象。
原因可能是请求数据返回的时间少于切换动画的默认时间(300ms),导致组件的重新渲染影响了动画的显示。
尝试加入了300ms的延时,或许可以解决问题
The text was updated successfully, but these errors were encountered: