(oref: string)
| 238 | } |
| 239 | |
| 240 | function isWaveObjectNullAtom(oref: string): Atom<boolean> { |
| 241 | const cacheKey = oref + ":isnull"; |
| 242 | let cachedAtom = waveObjectDerivedAtomCache.get(cacheKey) as Atom<boolean>; |
| 243 | if (cachedAtom != null) { |
| 244 | return cachedAtom; |
| 245 | } |
| 246 | cachedAtom = atom((get) => get(getWaveObjectAtom(oref)) == null); |
| 247 | waveObjectDerivedAtomCache.set(cacheKey, cachedAtom); |
| 248 | return cachedAtom; |
| 249 | } |
| 250 | |
| 251 | function useWaveObjectValue<T extends WaveObj>(oref: string): [T, boolean] { |
| 252 | const wov = getWaveObjectValue<T>(oref); |
nothing calls this directly
no test coverage detected