MCPcopy
hub / github.com/wavetermdev/waveterm / useWaveObjectValue

Function useWaveObjectValue

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

Source from the content-addressed store, hash-verified

249}
250
251function useWaveObjectValue<T extends WaveObj>(oref: string): [T, boolean] {
252 const wov = getWaveObjectValue<T>(oref);
253 const atomVal = useAtomValue(wov.dataAtom);
254 return [atomVal.value, atomVal.loading];
255}
256
257function updateWaveObject(update: WaveObjUpdate) {
258 if (update == null) {

Callers 1

AppBackgroundFunction · 0.90

Calls 1

getWaveObjectValueFunction · 0.85

Tested by

no test coverage detected