Skip to content
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

componentDidShow钩子内调用Taro.redirectTo引起的bug #8238

Closed
shenX-2021 opened this issue Dec 10, 2020 · 0 comments
Closed

componentDidShow钩子内调用Taro.redirectTo引起的bug #8238

shenX-2021 opened this issue Dec 10, 2020 · 0 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x

Comments

@shenX-2021
Copy link

相关平台

H5

复现仓库

https://github.com/gxsandzxl/taro-bug-demo/blob/master/src/pages/somePage/somePage.jsx
浏览器版本: Chrome 版本 87.0.4280.88(正式版本) (64 位)
使用框架: React

复现步骤

npm i
npm run dev:h5

不稳定重现,无法重现就新开标签页再来一次

期望结果

成功redirectTo其他页面

实际结果

不断触发当前页面的componentDidShow钩子,无法正常跳转

环境信息

Taro CLI 2.2.14 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.16.3 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - D:\Program Files\Yarn\bin\yarn.CMD
      npm: 6.14.4 - D:\Program Files\nodejs\npm.CMD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x
Projects
Archived in project
Development

No branches or pull requests

2 participants