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

RN 端生命周期 componentDidCatch 无效 #9987

Closed
iChengbo opened this issue Aug 5, 2021 · 1 comment
Closed

RN 端生命周期 componentDidCatch 无效 #9987

iChengbo opened this issue Aug 5, 2021 · 1 comment
Assignees
Labels
F-react Framework - React P-1 High, patch T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@iChengbo
Copy link
Collaborator

iChengbo commented Aug 5, 2021

相关平台

React Native

使用框架: React

复现步骤

1、添加 componentDidCatch;
2、render 中抛出异常;

期望结果

渲染异常时可以触发 componentDidCatch 生命周期

实际结果

不能触发

环境信息

👽 Taro v3.2.0-beta.2


  Taro CLI 3.2.0-beta.2 environment info:
    System:
      OS: macOS 11.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.5.0 - ~/.nvm/versions/node/v16.5.0/bin/node
      Yarn: 1.22.5 - ~/.yarn/bin/yarn
      npm: 7.19.1 - ~/.nvm/versions/node/v16.5.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.3.0 => 3.3.0 
      @tarojs/components: 3.3.0 => 3.3.0 
      @tarojs/mini-runner: 3.3.0 => 3.3.0 
      @tarojs/react: 3.3.0 => 3.3.0 
      @tarojs/runtime: 3.3.0 => 3.3.0 
      @tarojs/taro: 3.3.0 => 3.3.0 
      @tarojs/webpack-runner: 3.3.0 => 3.3.0 
      babel-preset-taro: 3.3.0 => 3.3.0 
      eslint-config-taro: 3.3.0 => 3.3.0 
      react: ^17.0.0 => 17.0.2 
      react-native: ^0.64.0 => 0.64.2 
@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels Aug 5, 2021
@zhiqingchen zhiqingchen added the P-1 High, patch label Nov 12, 2021
@taro-bot2 taro-bot2 bot added this to the 3.3.13 milestone Nov 12, 2021
@zhiqingchen zhiqingchen removed this from the 3.3.13 milestone Nov 12, 2021
@zhiqingchen
Copy link
Member

#8191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React P-1 High, patch T-rn Target - 编译到 React Native V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

3 participants