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
TODO reactive 里面如果有 ref 类型的 key 的话, 那么也是不需要调用 ref.value 的
在阅读源码时发现了一个TODO,想解决下
The text was updated successfully, but these errors were encountered:
单测如下:
it('should automatically dereference reactive properties with proxyRefs', () => { const user = { age: ref(10), name: 'xiaohong' } const original = reactive(user) const proxyUser = proxyRefs(original) expect(proxyUser).toBe(original) expect(proxyUser.age).toBe(10) })
Sorry, something went wrong.
export function isRef(value) { return !!(value && value.__v_isRef === true) }
isRef也需要改动
export function isRef(value) { return !!(value && value.__v_isRef === true) } isRef也需要改动
已更正
Successfully merging a pull request may close this issue.
TODO reactive 里面如果有 ref 类型的 key 的话, 那么也是不需要调用 ref.value 的
在阅读源码时发现了一个TODO,想解决下
The text was updated successfully, but these errors were encountered: