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

rax开发(编译时)踩坑记录 #12

Open
qppq54s opened this issue Apr 1, 2021 · 0 comments
Open

rax开发(编译时)踩坑记录 #12

qppq54s opened this issue Apr 1, 2021 · 0 comments

Comments

@qppq54s
Copy link
Owner

qppq54s commented Apr 1, 2021

  1. 嵌套使用(例如if else里面有if else)await方法时,每一层内使用都要加上try-catch方法,不然内层的error不会被最外层的try-catch到,会导致js代码报错
  2. 使用components时,子节点使用function渲染时,内部元素state发生变化,子节点不会同步更新
  3. render方法里渲染节点,无法使用嵌套判断,例如,在map(item => ( ))的View组件里判断if(item.success) renturn ... 或者 item.success &&
  4. rax-input受控组件需要使用onInput进行输入事件监听。
@qppq54s qppq54s changed the title rax开发踩坑记录 rax开发(编译时)踩坑记录 Apr 15, 2021
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