Skip to content

the Ref type seem to unwrap deeply nested ref when it should not #12219

Closed Answered by Jannchie
4dr1en asked this question in Help/Questions
Discussion options

You must be logged in to vote

I’ve encountered a similar issue. A ref within a ref gets automatically unwrapped. This seems to be a confusing feature. As a solution, you can change the outer ref to a shallowRef, so the inner ref won’t be automatically unwrapped.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 4dr1en
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants