mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 00:08:12 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user