Skip to content

how use toRef with Map? #7647

Discussion options

You must be logged in to vote

Maybe you can try customRef. Here is a demo.

Currently, toRef only works on a plain object.

https://github.com/vuejs/core/blob/main/packages/reactivity/src/ref.ts#L252-L261

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@baixiaoyu2997
Comment options

Answer selected by baixiaoyu2997
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants