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

组件返回 null, 导致 swiper 异常。 #6930

Closed
BigBugaboo opened this issue Jul 6, 2020 · 0 comments
Closed

组件返回 null, 导致 swiper 异常。 #6930

BigBugaboo opened this issue Jul 6, 2020 · 0 comments

Comments

@BigBugaboo
Copy link

相关平台

微信小程序

复现仓库

https://codesandbox.io/s/elastic-carson-94vkk?file=/src/App.js
小程序基础库: 2.113
使用框架: React

复现步骤

等待3秒,请求结束后,复现

期望结果

请求结束后,组件状态更新,swiper保持不变

实际结果

请求结束后,组件状态更新,swiper异常

环境信息

👽 Taro v3.0.0-rc.6


  Taro CLI 3.0.0-rc.6 environment info:
    System:
      OS: macOS 10.15.4
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 10.16.3 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/components: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/mini-runner: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/react: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/runtime: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/taro: 3.0.0-rc.6 => 3.0.0-rc.6 
      @tarojs/webpack-runner: 3.0.0-rc.6 => 3.0.0-rc.6 
      babel-preset-taro: 3.0.0-rc.6 => 3.0.0-rc.6 
      eslint-config-taro: 3.0.0-rc.6 => 3.0.0-rc.6 
      react: ^16.10.0 => 16.13.1 

补充信息

组件不返回 null,返回 View、Text 等,swiper正常。
如果组件返回null,swiper异常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant