// I'm not sure why we're not using blobIds directly, it would save us this composite key ...
// perhaps one benefit is that we're always requesting the latest blob, not relying on perhaps faulty/slow
// websocket update?
@ -378,7 +378,10 @@ class FrocaImpl implements Froca {
this.blobPromises[key]=server
.get<FBlobRow>(`${entityType}/${entityId}/blob`)
.then((row)=>newFBlob(row))
.catch((e)=>console.error(`Cannot get blob for ${entityType} '${entityId}'`,e));
.catch((e)=>{
console.error(`Cannot get blob for ${entityType} '${entityId}'`,e);
returnnull;
});
// we don't want to keep large payloads forever in memory, so we clean that up quite quickly
// this cache is more meant to share the data between different components within one business transaction (e.g. loading of the note into the tab context and all the components)