MCPcopy Index your code
hub / github.com/tinyplex/tinybase / ValueView

Function ValueView

src/ui-solid/ValueView.tsx:9–24  ·  view source on GitHub ↗
(props: ValueProps)

Source from the content-addressed store, hash-verified

7import {useValue} from './primitives.ts';
8
9export const ValueView = (props: ValueProps): JSXElement => {
10 const value = useValue(
11 () => props.valueId,
12 () => props.store,
13 );
14 return (
15 <>
16 {wrap(
17 EMPTY_STRING + (getValue(value) ?? EMPTY_STRING),
18 undefined,
19 props.debugIds,
20 props.valueId,
21 )}
22 </>
23 );
24};

Callers

nothing calls this directly

Calls 3

useValueFunction · 0.90
wrapFunction · 0.90
getValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…