(oref: string)
| 249 | } |
| 250 | |
| 251 | function 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 | |
| 257 | function updateWaveObject(update: WaveObjUpdate) { |
| 258 | if (update == null) { |
no test coverage detected