DEV Community

Discussion on: How does Reactivity work in Vue.js?

jianwu profile image

I'm a bit curious about how we handle "target" if there's a nested component. In your example, we put "target" as a global variable. That means only one target can be set at one time. But in the nested component. e.g. component A includes component B


function readnerFunctionForA() {
  // render

renderFunctionForB() {
  // Render

In that case, I want the update of will only refresh renderFunctionForB(). How can we achieve that?