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

useDidShow在非tabBar页面来回切换不触发 #8141

Closed
lang-strive opened this issue Nov 27, 2020 · 1 comment
Closed

useDidShow在非tabBar页面来回切换不触发 #8141

lang-strive opened this issue Nov 27, 2020 · 1 comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@lang-strive
Copy link

相关平台

微信小程序

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

复现步骤

1.在非tabBar页面 addressList页面添加useDidShow,useDidShow里执行console.log(1);
2.第一次进去执行useDidShow,并且打印出了console.log(1);
3.点击跳转address页面添加地址完成后 goBack()回来,useDidShow不触发console.log(1);

期望结果

useDidShow在非tabBar页面也能触发,之前taro某个版本库是可以的,升级后就不行了

实际结果

在非tabBar页面来回切换不触发

环境信息

👽 Taro v3.1.0-beta.0


  Taro CLI 3.1.0-beta.0 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.14.0 - /usr/local/node/bin/node
      Yarn: 1.22.4 - /usr/local/node/bin/yarn
      npm: 6.13.4 - /usr/local/node/bin/npm
    npmPackages:
      @tarojs/components: 3.1.0-beta.0 => 3.1.0-beta.0
      @tarojs/mini-runner: 3.1.0-beta.0 => 3.1.0-beta.0
      @tarojs/react: 3.1.0-beta.0 => 3.1.0-beta.0
      @tarojs/runtime: 3.1.0-beta.0 => 3.1.0-beta.0
      @tarojs/taro: 3.1.0-beta.0 => 3.1.0-beta.0
      @tarojs/webpack-runner: 3.1.0-beta.0 => 3.1.0-beta.0
      babel-preset-taro: 3.1.0-beta.0 => 3.1.0-beta.0
      eslint-config-taro: 3.1.0-beta.0 => 3.1.0-beta.0
      react: ^16.10.0 => 16.14.0
    npmGlobalPackages:
      typescript: 3.8.3
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Nov 27, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Dec 22, 2020

复现不了,升级到最新版后再试试吧。

@Chen-jj Chen-jj closed this as completed Dec 22, 2020
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