Getting recursive updates error when adding boolean prop without ="true" #3371
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.7
Reproduction link
https://codesandbox.io/s/bold-drake-1qwvq?file=/src/App.vue
Steps to reproduce
I found two things which are weird: I get the "Maximum recursive updates exceeded" error only if I write
<VEntry mandatory />
.But if I write
<VEntry :mandatory="true" />
(or false) it works. (See comment in App.vue in the demo)(For me a huge indicator that there is something wrong internally, since both should mean the same)
Additionally: If I wrap one of the passed computed refs with a
readonly
, it outputs other warnings. (See comment in DescriptionListEntry.vue in the demo)What is expected?
consistent behaviour with or without
="true"
on boolean props (ideally without the recursive error)no internal write access on readonly computed refs
What is actually happening?
Maximum recursive updates exceeded.
Set operation on key "_ value" failed: target is readonly. Set operation on key "_ dirty" failed: target is readonly.
I am so confused right now. I tried to remove everything around the issue to track it down to a minimal reproduction. Hope this helps.
The text was updated successfully, but these errors were encountered: