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
const isExistInReactiveMap = () => key === ReactiveFlags.RAW && receiver === reactiveMap.get(target); const isExistInReadonlyMap = () => key === ReactiveFlags.RAW && receiver === readonlyMap.get(target); const isExistInShallowReadonlyMap = () => key === ReactiveFlags.RAW && receiver === shallowReadonlyMap.get(target);
这三个常量写为函数对象似乎并没有什么实质性作用,vue3现在的代码已经实现为:
(key === ReactiveFlags.RAW && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap ).get(target))
也许可以优化下。
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
这三个常量写为函数对象似乎并没有什么实质性作用,vue3现在的代码已经实现为:
也许可以优化下。
The text was updated successfully, but these errors were encountered: