-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[] in reactive() is null? #2882
Comments
You overwirte the value at here https://gitee.com/liguangzheng777/school/blob/master/src/views/student/add.vue#L97 |
in 97 overwirte console error:Uncaught (in promise) TypeError: oldChildren is null |
in 97 overwirte console: |
@underfin why this array default cannot set [] , only set [0],[{}] and more ? |
to be exact , this array default set [] , overwrite will be error , but default set [0],[{}] will not error |
Duplicate of #2820 When opening bug reports make sure to follow https://new-issue.vuejs.org/?repo=vuejs/vue#why-repro |
Oh.Sorry for mistaken. |
Version
3.0.4
Reproduction link
https://gitee.com/liguangzheng777/school/blob/master/src/views/student/add.vue
Steps to reproduce
console:
Uncaught (in promise) TypeError: oldChildren is null
if : const state = reactive({classesArr: [0]})
code run success
What is expected?
lgz
What is actually happening?
[] is null?? how to solve
how to solve,thanks
The text was updated successfully, but these errors were encountered: