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
taro3 react H5 快速来回切换tabBar,无法保证定位当前页面 #10426
Comments
快速切换应该是 切换路由的有定时器造成的, 你在切换路由包裹一层定时器, 时间5毫秒试试 |
遇到了相同的问题 相关平台H5 Safari 和 Chrome 浏览器上都能复现此问题 复现仓库https://github.com/shushu2013/taro-h5-bugs-example 浏览器版本: Safari浏览器 版本14.1.2 (16611.3.10.1.6) 使用框架: React 复现步骤
1、进入首页,快速来回点击底部 tabBar 的 『首页』和 『我的』菜单 2、底部 tabBar 菜单状态和 url 都变化了,页面却没有显示对应的 tab 页面 期望结果来回切换 tabBar,页面内容显示正常 实际结果来回切换 tabBar,页面内容显示不正常 环境信息
|
为了解决另一个问题,现在对跳转有设置一个 500ms 的 debounce,所以又带来了快速点击跳转时的问题。之后会对路由做一次重构,解决一系列问题 |
所谓的之后是多久? |
这个 Q |
解决了吗,3.4.1 仍然有此问题,但不是快速切换,不快速切换也有此问题 |
相关平台
H5
浏览器版本: chrome 94
使用框架: React
复现步骤
来回切换tabbar
期望结果
可以定位到当前的tabbar页面
实际结果
不稳定
环境信息
The text was updated successfully, but these errors were encountered: