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

Function readAtom

frontend/app/store/global.ts:348–353  ·  view source on GitHub ↗

* Safely read an atom value, returning null if the atom is null.

(atom: Atom<T>)

Source from the content-addressed store, hash-verified

346 * Safely read an atom value, returning null if the atom is null.
347 */
348function readAtom<T>(atom: Atom<T>): T {
349 if (atom == null) {
350 return null;
351 }
352 return globalStore.get(atom);
353}
354
355/**
356 * Get the preload api.

Callers 1

keyDownHandlerMethod · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected