MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / getWaveObjectLoadingAtom

Function getWaveObjectLoadingAtom

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

Source from the content-addressed store, hash-verified

223}
224
225function 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
240function isWaveObjectNullAtom(oref: string): Atom<boolean> {
241 const cacheKey = oref + ":isnull";

Callers

nothing calls this directly

Calls 3

getWaveObjectValueFunction · 0.85
getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected