MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / isWaveObjectNullAtom

Function isWaveObjectNullAtom

frontend/app/store/wos.ts:240–249  ·  view source on GitHub ↗
(oref: string)

Source from the content-addressed store, hash-verified

238}
239
240function 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
251function useWaveObjectValue<T extends WaveObj>(oref: string): [T, boolean] {
252 const wov = getWaveObjectValue<T>(oref);

Callers

nothing calls this directly

Calls 3

getMethod · 0.80
setMethod · 0.80
getWaveObjectAtomFunction · 0.70

Tested by

no test coverage detected