perf: further tweak accessCache

This commit is contained in:
Evan You
2019-10-17 22:29:51 -04:00
parent 7305f693b1
commit d179918001
2 changed files with 6 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ export function setupStatefulComponent(
}
}
// 0. create render proxy property access cache
instance.accessCache = Object.create(null)
instance.accessCache = {}
// 1. create render proxy
instance.renderProxy = new Proxy(instance, PublicInstanceProxyHandlers)
// 2. create props proxy