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

Function AddValue

src/ui-solid-inspector/index.tsx:513–526  ·  view source on GitHub ↗
(props: OnDoneProp & ValuesProps)

Source from the content-addressed store, hash-verified

511 });
512
513const AddValue = (props: OnDoneProp & ValuesProps) => {
514 const has = useHasValueCallback(props.store);
515 return NewId({
516 onDone: props.onDone,
517 suggestedId: getNewIdFromSuggestedId('value', has),
518 has,
519 set: useSetValueCallback(
520 (newId: Id) => newId,
521 () => '',
522 props.store,
523 ),
524 prompt: 'Add value',
525 });
526};
527
528const DeleteValues = (props: OnDoneProp & ValuesProps) =>
529 Delete({

Callers

nothing calls this directly

Calls 4

getNewIdFromSuggestedIdFunction · 0.90
useSetValueCallbackFunction · 0.90
useHasValueCallbackFunction · 0.70
NewIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…