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

Grid组件下使用条件判断动态添加GridItem时,如果有的条件为假时,会报错Minified React error #130 #539

Closed
6 tasks
liudichen opened this issue Jul 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@liudichen
Copy link

这个 Issue 涉及以下平台:

  • [x ] 微信小程序
  • 支付宝小程序
  • 百度小程序
  • 头条小程序
  • 快手小程序
  • QQ 轻应用
  • Web 平台(H5)

BUG 描述
canReply=false时,会报Minified React error #130错误,并白页.

复现步骤

 <Grid clickable columnNum={2}>
        <GridItem text="组织" linkType="navigateTo" url="/pages/site/index" />
        <GridItem text="问" linkType="navigateTo" url="/pages/ask/index" />
        {canReply && <GridItem text="答" linkType="navigateTo" url="/pages/reply/index" />}
      </Grid>

期望结果
可以正常显示宫格

实际结果
无法显示,并报错

截图
1688721149660

环境

 "@antmjs/vantui": "^3.1.1",
    "@babel/runtime": "^7.22.6",
    "@iimm/shared": "^2.4.1",
    "@tarojs/components": "3.6.8",
    "@tarojs/helper": "3.6.8",
    "@tarojs/plugin-framework-react": "3.6.8",
    "@tarojs/plugin-platform-alipay": "3.6.8",
    "@tarojs/plugin-platform-h5": "3.6.8",
    "@tarojs/plugin-platform-jd": "3.6.8",
    "@tarojs/plugin-platform-qq": "3.6.8",
    "@tarojs/plugin-platform-swan": "3.6.8",
    "@tarojs/plugin-platform-tt": "3.6.8",
    "@tarojs/plugin-platform-weapp": "3.6.8",
    "@tarojs/react": "3.6.8",
    "@tarojs/runtime": "3.6.8",
    "@tarojs/shared": "3.6.8",
    "@tarojs/taro": "3.6.8",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",

附加信息

@zuolung zuolung added the bug Something isn't working label Jul 7, 2023
@zuolung zuolung closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants