We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ref
3.0.0-rc.5
https://codesandbox.io/s/frosty-resonance-i4nc0
const model = ref(["a", "b", "c"]); const refs = toRefs(model.value);
refs should be an array of refs:
refs
[ Ref<arr[0]>, Ref<arr[1]>, Ref<arr[2]>, ]
refs is an object:
{ '0': Ref<arr[0]>, '1': Ref<arr[1]>, '2': Ref<arr[2]>, }
The text was updated successfully, but these errors were encountered:
feat(reactivity): return array when calling toRefs on array (#1768)
toRefs
4172fdb
close #1764
Successfully merging a pull request may close this issue.
Version
3.0.0-rc.5
Reproduction link
https://codesandbox.io/s/frosty-resonance-i4nc0
Steps to reproduce
What is expected?
refs
should be an array of refs:What is actually happening?
refs
is an object:The text was updated successfully, but these errors were encountered: