feat: Implement local and asset view caching with invalidation logic to optimize rendering

This commit is contained in:
Chenyme committed 2026-04-12 19:40:11 +08:00
1 parent 5af6bd3ca3
commit 9fe91d14cc
1 file changed
+1
+1
View File
@@ -468,6 +468,7 @@ function invalidateLocalView() {
function invalidateAssetView() {
_assetViewVersion += 1;
}
function getLocalView() {
if (_localViewCache && _localViewCacheVersion === _localViewVersion) return _localViewCache;