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

百度小程序 每执行一次 useState 或 setState都会使的整个页面刷新,多次使用导致页面卡顿,时间久了页面直接崩溃 #7633

Closed
hongxinfeiyang opened this issue Sep 17, 2020 · 1 comment
Labels
F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x

Comments

@hongxinfeiyang
Copy link

相关平台

百度小程序

小程序基础库: 3.190.255-rc
使用框架: React

复现步骤

多次连续使用useState 或 setState 即可出现

期望结果

使用useState 或 setState时,只刷新组件自身

实际结果

使用useState 或 setState时,刷新整个页面,并且每次都新增一份页面所有元素

环境信息

 Taro CLI 3.0.10 environment info:
    System:
      OS: macOS High Sierra 10.13.4
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.14.2 - /usr/local/bin/node
      Yarn: 1.22.5 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.0.10 => 3.0.10
      @tarojs/mini-runner: 3.0.10 => 3.0.10
      @tarojs/react: 3.0.10 => 3.0.10
      @tarojs/runtime: 3.0.10 => 3.0.10
      @tarojs/taro: 3.0.10 => 3.0.10
      @tarojs/webpack-runner: 3.0.10 => 3.0.10
      babel-preset-taro: 3.0.10 => 3.0.10
      eslint-config-taro: 3.0.10 => 3.0.10
      react: ^16.10.0 => 16.13.1
@taro-bot2 taro-bot2 bot added F-react Framework - React T-swan Target - 编译到百度小程序 V-3 Version - 3.x labels Sep 17, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Sep 17, 2020

Duplicate of #7293

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-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants