2.4.1
https://jsfiddle.net/f3Lo2k0p/
To not get a warning
Vue issues a warning:
"Avoid using non-primitive value as key, use string/number value instead."
However the key here is bound to a boolean property.
A boolean is not a string or a number, so technically, you are not doing what the warning asks you to do. ;)
Still, we should look into it and see that boo leans are fine too.
FYI, you can turn the boolean into a number by prepending +:
<div :key="+isEditing">
I guess adding it to the warning is enough but we could also make isPrimitive check if the vaule is a boolean
Most helpful comment
FYI, you can turn the boolean into a number by prepending
+:I guess adding it to the warning is enough but we could also make
isPrimitivecheck if the vaule is a boolean