When clear a reactive array object in effect function, the array.length
is not 0
, all ways has a element in it.
#6017
Unanswered
betgar
asked this question in
Help/Questions
Replies: 1 comment
-
sfc repro see https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.splice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use
@vue/reactivity
independently. I want use reactive array as a data store , when store change do some sync task, then clear the store.The console log is :
store.value.splice(0)
trigger effect callback run again, but in the effect callback,store.value.length
is not0
.Did I use
@vue/reactivity
it in the right way ???Beta Was this translation helpful? Give feedback.
All reactions