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

所有调用usePageLifecycle的hook,例如useDidShow未正常触发 #7768

Open
EchoHub opened this issue Sep 29, 2020 · 1 comment
Open
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-2 Version - 2.x

Comments

@EchoHub
Copy link

EchoHub commented Sep 29, 2020

相关平台

百度小程序

小程序基础库: 3.200.114
使用框架: React

复现步骤

useDidShow(() => {
console.log('test')
)

期望结果

打印test

实际结果

未成功打印

环境信息

Taro CLI 2.2.9 environment info:
    System:
      OS: macOS 10.14.3
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.15.1 - /usr/local/bin/node
      Yarn: 1.13.0 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 2.2.9 => 2.2.9 
      @tarojs/components: 2.2.9 => 2.2.9 
      @tarojs/components-qa: 2.2.9 => 2.2.9 
      @tarojs/mini-runner: 2.2.9 => 2.2.9 
      @tarojs/plugin-sass: 2.2.9 => 2.2.9 
      @tarojs/plugin-terser: 2.2.9 => 2.2.9 
      @tarojs/router: 2.2.9 => 2.2.9 
      @tarojs/taro: 2.2.9 => 2.2.9 
      @tarojs/taro-alipay: 2.2.9 => 2.2.9 
      @tarojs/taro-swan: 2.2.9 => 2.2.9 
      @tarojs/webpack-runner: 2.2.9 => 2.2.9 
      eslint-config-taro: 2.2.9 => 2.2.9 
      eslint-plugin-taro: 2.2.9 => 2.2.9 
      nerv-devtools: ^1.5.5 => 1.5.7 
      nervjs: ^1.5.5 => 1.5.7 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-2 Version - 2.x labels Sep 29, 2020
@luckyadam
Copy link
Member

用 2.2.15 试试~

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

No branches or pull requests

2 participants