refactor: use more efficient useComputed() implementation

This commit is contained in:
Evan You
2018-10-30 01:10:03 -04:00
parent f9e3e38fdb
commit 8602b61efb
4 changed files with 18 additions and 15 deletions

View File

@@ -43,7 +43,8 @@ const renderProxyHandlers = {
} else if (key[0] !== '_') {
if (__DEV__ && isRendering && !(key in target)) {
warn(
`property "${key}" was accessed during render but does not exist on instance.`
`property "${key}" was accessed during render but does not exist ` +
`on instance.`
)
}
const value = Reflect.get(target, key, receiver)