(oref: string)
| 200 | } |
| 201 | |
| 202 | function loadAndPinWaveObject<T extends WaveObj>(oref: string): Promise<T> { |
| 203 | const wov = getWaveObjectValue<T>(oref); |
| 204 | if (wov.pendingPromise == null) { |
| 205 | const dataValue = globalStore.get(wov.dataAtom); |
| 206 | return Promise.resolve(dataValue.value); |
| 207 | } |
| 208 | return wov.pendingPromise; |
| 209 | } |
| 210 | |
| 211 | const waveObjectDerivedAtomCache = new Map<string, Atom<any>>(); |
| 212 |
nothing calls this directly
no test coverage detected