From 7b8ca91984c41790de177e9d5275a230520cabc0 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 7 Dec 2022 18:40:51 -0500 Subject: stopped update _cache in ProxyField because it invalidates too much stuff during rendering. moved some setContentViews() to constructors for efficiency --- src/fields/Proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fields') diff --git a/src/fields/Proxy.ts b/src/fields/Proxy.ts index 72ae13035..3aafacd96 100644 --- a/src/fields/Proxy.ts +++ b/src/fields/Proxy.ts @@ -66,7 +66,7 @@ export class ProxyField extends ObjectField { const cached = DocServer.GetCachedRefField(this.fieldId) as T; if (cached !== undefined) { - setTimeout(action(() => (this.cache = cached))); + //setTimeout(action(() => (this.cache = cached))); // can't do this because it triggers too many invalidations while rendering. } else if (!this.promise) { this.promise = DocServer.GetRefField(this.fieldId).then( action((field: any) => { -- cgit v1.2.3-70-g09d2