(oref: string)
| 223 | } |
| 224 | |
| 225 | function getWaveObjectLoadingAtom(oref: string): Atom<boolean> { |
| 226 | const cacheKey = oref + ":loading"; |
| 227 | let cachedAtom = waveObjectDerivedAtomCache.get(cacheKey) as Atom<boolean>; |
| 228 | if (cachedAtom != null) { |
| 229 | return cachedAtom; |
| 230 | } |
| 231 | const wov = getWaveObjectValue(oref); |
| 232 | cachedAtom = atom((get) => { |
| 233 | const dataValue = get(wov.dataAtom); |
| 234 | return dataValue.loading; |
| 235 | }); |
| 236 | waveObjectDerivedAtomCache.set(cacheKey, cachedAtom); |
| 237 | return cachedAtom; |
| 238 | } |
| 239 | |
| 240 | function isWaveObjectNullAtom(oref: string): Atom<boolean> { |
| 241 | const cacheKey = oref + ":isnull"; |
nothing calls this directly
no test coverage detected