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

Function CloneValue

src/ui-solid-inspector/index.tsx:548–561  ·  view source on GitHub ↗
(props: OnDoneProp & ValueProps)

Source from the content-addressed store, hash-verified

546 });
547
548const CloneValue = (props: OnDoneProp & ValueProps) => {
549 const has = useHasValueCallback(props.store);
550 return NewId({
551 onDone: props.onDone,
552 suggestedId: getNewIdFromSuggestedId(props.valueId, has),
553 has,
554 set: useSetValueCallback(
555 (newId: Id) => newId,
556 (_, store) => store.getValue(props.valueId) ?? '',
557 props.store,
558 ),
559 prompt: 'Clone value to',
560 });
561};
562
563const DeleteValue = (props: OnDoneProp & ValueProps) =>
564 Delete({

Callers

nothing calls this directly

Calls 5

getNewIdFromSuggestedIdFunction · 0.90
useSetValueCallbackFunction · 0.90
useHasValueCallbackFunction · 0.70
NewIdFunction · 0.70
getValueMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…