aboutsummaryrefslogtreecommitdiff
path: root/src/fields
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-12-07 18:40:51 -0500
committerbobzel <zzzman@gmail.com>2022-12-07 18:40:51 -0500
commit7b8ca91984c41790de177e9d5275a230520cabc0 (patch)
tree7e137779a665da640c117943029fef16e2ba0e0f /src/fields
parent6ffb3b6879fbe8e12b79eb00a316b08bf1993149 (diff)
stopped update _cache in ProxyField because it invalidates too much stuff during rendering. moved some setContentViews() to constructors for efficiency
Diffstat (limited to 'src/fields')
-rw-r--r--src/fields/Proxy.ts2
1 files changed, 1 insertions, 1 deletions
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<T extends RefField> 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) => {