Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(reactivity): toRef should not wrap a ref #2103

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

pikax
Copy link
Member

@pikax pikax commented Sep 12, 2020

const r = { x: ref(1) }
toRef(r,'x') // { value: { value: 1 } } 

// it should be 

toRef(r, 'x') // { value: 1}

@yyx990803 yyx990803 merged commit d4bf9bc into vuejs:master Sep 15, 2020
@pikax pikax deleted the fix/toRef_shouldnt_wrap_ref branch September 15, 2020 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants