categorical UI improvements (#1649)

* return undefined for unknown fields

* memoize fetch response

* handle rename of user annotation

* performance and cleanup

* fix snapshots

* fix comment

* lint
This commit is contained in:
Bruce Martin
2020-07-20 08:52:41 -07:00
committed by GitHub
parent 410566f5e1
commit 2715157793
13 changed files with 274 additions and 229 deletions
+10
View File
@@ -52,3 +52,13 @@ export function memoize(fn, hashFn, maxResultsCached = -1) {
return wrap;
}
/**
memoization helpers - just a global counter.
**/
let __DataframeMemoId__ = 0;
export function __getMemoId() {
const id = __DataframeMemoId__;
__DataframeMemoId__ += 1;
return id;
}