Subscribe on changes!

the reactive can't use in deep object the vue2 can use $forceUpdate() to render the view bug the vue3 do not support

avatar
Nov 15th 2020

Version

3.0.2

Reproduction link

https://jsbin.com/tizawixizi/edit?html,css,js

Steps to reproduce

  let defaultData=reactive({
        name:undefined,
    })

   defaultData.subItem=reactive([]);

function addSub(item,i,root,index) { data.subItem=reactive([]); data.parent=root let arr=[...item,data] root.subItem=arr let father=root if(father.parent){ father.subItem=[...father.subItem] console.log(father) } }

What is expected?

i want addsub then in deep level can render

What is actually happening?

can render view in deep level

avatar
Nov 15th 2020

bug the vue3 do not support

but the vue3 do not support? I don’t understand the point from your reproduction link, but $forceUpdate is also supported in Vue3.

avatar
Nov 19th 2020

Please open a new issue with a boiled down reproduction using the jsfiddle link provided on the issue helper and proper reproduction steps. Remember to use the forum or the Discord chat to ask questions!