-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
小程序渲染层错误 #433
Comments
我本地测试了一下你的代码,没有复现报错。 |
if else 会触发这个问题(也许是 if, elif, else的问题, 里面又使用了自定义组件),建议调整简化下 if else 的结构 |
更新到后面的 Taro 版本后,此问题解决。 |
taro 1.3.0 依然存在 |
解决这个又引出了另一个 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
当我试图编写一个根据属性切换试图的组件时,出现小程序渲染层错误。
复现步骤
期望行为
根据
type
属性切换不同的视图。报错信息
当
this.props.type === 'goods'
和this.props.type === 'order'
时,一切正常。当
this.props.type === 'addToCart'
和this.props.type === 'purchase'
时,小程序会报错:第一次报错:
Error: Expect FLOW_MINIPULATE_CHILD but get another
第二次报错:
Error: Expect END descriptor with depth 0 but get another
第三次以后,虽然不再报错,但是此组件不再被渲染。
系统信息
操作系统: Windows 10
Taro 版本 v1.0.0.beta.7
Node.js 版本 v8.11.2
补充信息
修改成这样又正常了:
The text was updated successfully, but these errors were encountered: