antfu / reactivue

🙊 Use Vue Composition API in React components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support react dev-tool?

bichikim opened this issue · comments

Seems working for me. What is your expectation?

I have noticed few thing can be improved.

  • defineComponent/createSetup returns Anonymous component/hook. Can be fixed by an argument or babel plugin or at the user land by manually setting displayName.
  • Setup hook that displayed in hooks pane doesn't have a debug value. That can be provided with useDebugValue.
  • Reactivue internals such as tick and instance ids can be labeled with useDebugValue for further readibility.

Not sure but maybe we can:

  • List watchers/lifecycle hooks (onMounted, watch, computed) here.
  • Disable/Enable that watchers/lifecycle hooks through a boolean.

Sorry The above snapshot is wrong
Showing states in the devtool looks good to use
image