NervJS/taro

导航到某个页面,退出该页面时如果页面报错,接下去导航就不跳转了

Open

#12401 opened on Aug 29, 2022

View on GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (37,306 stars) (4,897 forks)batch import
F-reactT-weappV-3buggood first issue

Description

相关平台

微信小程序

复现仓库

https://github.com/helloint/taroTest01 小程序基础库: 2.25.4 使用框架: React

复现步骤

基于demo project:

  1. 默认打开test/index
  2. 点击跳转到test/test
  3. 后退返回test/index。此时test/test的unmounts时有异常抛出。
  4. test/index正常显示。

期望结果

此时点击跳转,应该能正常工作。

实际结果

点击跳转无效。

环境信息

👽 Taro v3.5.3


  Taro CLI 3.5.3 environment info:
    System:
      OS: macOS 12.5.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 12.22.12 - ~/.nvm/versions/node/v12.22.12/bin/node
      Yarn: 1.22.17 - /opt/homebrew/bin/yarn
      npm: 6.14.16 - ~/.nvm/versions/node/v12.22.12/bin/npm
    npmPackages:
      @tarojs/cli: 3.5.4 => 3.5.4 
      @tarojs/components: 3.5.4 => 3.5.4 
      @tarojs/helper: 3.5.4 => 3.5.4 
      @tarojs/plugin-framework-react: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-alipay: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-jd: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-qq: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-swan: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-tt: 3.5.4 => 3.5.4 
      @tarojs/plugin-platform-weapp: 3.5.4 => 3.5.4 
      @tarojs/react: 3.5.4 => 3.5.4 
      @tarojs/router: 3.5.4 => 3.5.4 
      @tarojs/runtime: 3.5.4 => 3.5.4 
      @tarojs/shared: 3.5.4 => 3.5.4 
      @tarojs/taro: 3.5.4 => 3.5.4 
      @tarojs/taro-h5: 3.5.4 => 3.5.4 
      @tarojs/webpack5-runner: 3.5.4 => 3.5.4 
      babel-preset-taro: 3.5.4 => 3.5.4 
      eslint-config-taro: 3.5.4 => 3.5.4 
      react: ^18.0.0 => 18.2.0 


补充信息

CLI全局安装的是3.5.3,项目里安装了3.5.4,所以应该没问题。 这个问题存在于3.5.X里。在3.4.X里是正常的。

Contributor guide