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): ToRefs breaking change (close #2687) #2688

Closed
wants to merge 2 commits into from

Conversation

edison1105
Copy link
Member

close #2687

@edison1105 edison1105 changed the title fix(reactivity): ToRefs breaking change close #2687 fix(reactivity): ToRefs breaking change (close #2687) Nov 30, 2020
@edison1105 edison1105 closed this Nov 30, 2020
@edison1105 edison1105 reopened this Nov 30, 2020
@edison1105 edison1105 closed this Nov 30, 2020
@edison1105 edison1105 deleted the fix/2687 branch November 30, 2020 01:26
@@ -168,6 +168,6 @@ expectType<Ref<number>>(toRef(obj, 'b'))
// toRefs
const objRefs = toRefs(obj)
expectType<{
a: Ref<number>
a: number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is incorrect. toRefs wraps all values of obj in a ref, so the return type really should be Ref<number> here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I am not sure how to fix, so I closed this PR.

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.

Change in ToRefs between 3.0.2 and 3.0.3 is a breaking change
2 participants