diff options
| author | bobzel <zzzman@gmail.com> | 2022-12-07 18:40:51 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-12-07 18:40:51 -0500 |
| commit | 7b8ca91984c41790de177e9d5275a230520cabc0 (patch) | |
| tree | 7e137779a665da640c117943029fef16e2ba0e0f /src/fields | |
| parent | 6ffb3b6879fbe8e12b79eb00a316b08bf1993149 (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.ts | 2 |
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) => { |
