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
Uh oh!
There was an error while loading. Please reload this page.
-
I use
@vue/reactivityindependently. 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.lengthis not0.Did I use
@vue/reactivityit in the right way ???Beta Was this translation helpful? Give feedback.
All reactions