devtools icon indicating copy to clipboard operation
devtools copied to clipboard

feat(api): introduce inspectSetupState

Open alexzhang1030 opened this issue 1 year ago • 4 comments

closes #376

This is very useful when using defineComponent with setup returning the render function.

const Component = defineComponent({
  setup() {
    const name = ref('foo')
    inspectSetupState({
      name,
    })
    return h('div', name.value)
  },
})

alexzhang1030 avatar Jun 16 '24 14:06 alexzhang1030