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

componentWillUnmount没有被调用 #7229

Closed
peica opened this issue Aug 1, 2020 · 2 comments
Closed

componentWillUnmount没有被调用 #7229

peica opened this issue Aug 1, 2020 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@peica
Copy link

peica commented Aug 1, 2020

相关平台

微信小程序

复现仓库

https://github.com/peica/tarojs-issue0
小程序基础库: 2.12.0
使用框架: React

复现步骤

用tarojs/cli新建的模版,加一个page

期望结果

被调用

实际结果

没被调用

环境信息

Taro CLI 3.0.6 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 10.21.0 - /usr/local/bin/node
      Yarn: 1.22.0 - ~/.yarn/bin/yarn
      npm: 6.14.4 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.6 => 3.0.6
      @tarojs/components: 3.0.6 => 3.0.6
      @tarojs/mini-runner: 3.0.6 => 3.0.6
      @tarojs/react: 3.0.6 => 3.0.6
      @tarojs/runtime: 3.0.6 => 3.0.6
      @tarojs/taro: 3.0.6 => 3.0.6
      @tarojs/webpack-runner: 3.0.6 => 3.0.6
      babel-preset-taro: 3.0.6 => 3.0.6
      eslint-config-taro: 3.0.6 => 3.0.6
      react: ^16.10.0 => 16.13.1
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3

补充信息

3.0.5没问题

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 1, 2020
@Junyan
Copy link

Junyan commented Aug 1, 2020

等这个 pr 发版,或暂时先 fork 出来修改。
#7221

@peica
Copy link
Author

peica commented Aug 1, 2020

谢谢,这个PR有效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants