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

使用CustomWrapper包裹后,子元素有时显示,有时不显示了 #16456

Open
luozhangshuai opened this issue Sep 4, 2024 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@luozhangshuai
Copy link

相关平台

微信小程序

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

复现步骤

config/index.js cache.enable = true 后
CustomWrapper包裹的子元素有时显示,有时不显示了;不显示时,再重启微信开发者工具,又显示了

期望结果

与官网的描述一致

实际结果

有时显示,有时不显示

环境信息

 Taro CLI 3.6.30 environment info:
    System:
      OS: Windows 10 10.0.17763
    Binaries:
      Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
      npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 3.5.6 => 3.5.6
      @tarojs/components: 3.5.6 => 3.5.6
      @tarojs/helper: 3.5.6 => 3.5.6
      @tarojs/plugin-framework-react: 3.5.6 => 3.5.6
      @tarojs/plugin-platform-weapp: 3.5.6 => 3.5.6
      @tarojs/react: 3.5.6 => 3.5.6
      @tarojs/runtime: 3.5.6 => 3.5.6
      @tarojs/shared: 3.5.6 => 3.5.6
      @tarojs/taro: 3.5.6 => 3.5.6
      @tarojs/taro-loader: 3.5.6 => 3.5.6
      @tarojs/webpack5-runner: 3.5.6 => 3.5.6
      babel-preset-taro: 3.5.6 => 3.5.6
      eslint-config-taro: 3.5.6 => 3.5.6
      react: ^18.0.0 => 18.2.0
      taro-ui: ^3.0.0-alpha.10 => 3.0.0-alpha.10
This was referenced Sep 7, 2024
@TheKonka TheKonka added V-3 Version - 3.x F-react Framework - React T-weapp Target - 编译到微信小程序 labels Sep 13, 2024
@guangzhenwang
Copy link

碰到类似问题,我加了以下代码临时解决了,另外构建时不要开启缓存
usingComponents: { 'custom-wrapper': '/custom-wrapper' }

@guangzhenwang
Copy link

碰到类似问题,我加了以下代码临时解决了,另外构建时不要开启缓存 usingComponents: { 'custom-wrapper': '/custom-wrapper' }

好吧,加了貌似还是会出现类似问题...

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
Status: Todo
Development

No branches or pull requests

3 participants