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

Function CloneRow

src/ui-solid-inspector/index.tsx:451–466  ·  view source on GitHub ↗
(props: OnDoneProp & RowProps)

Source from the content-addressed store, hash-verified

449};
450
451const CloneRow = (props: OnDoneProp & RowProps) => {
452 const store = useStoreOrStoreById(props.store)();
453 const has = useHasRowCallback(store, props.tableId);
454 return NewId({
455 onDone: props.onDone,
456 suggestedId: getNewIdFromSuggestedId(props.rowId, has),
457 has,
458 set: useSetRowCallback(
459 props.tableId,
460 (newId) => newId,
461 (_, store) => store.getRow(props.tableId, props.rowId),
462 store,
463 ),
464 prompt: 'Clone row to',
465 });
466};
467
468const DeleteRow = (props: OnDoneProp & RowProps) =>
469 Delete({

Callers

nothing calls this directly

Calls 6

useStoreOrStoreByIdFunction · 0.90
getNewIdFromSuggestedIdFunction · 0.90
useSetRowCallbackFunction · 0.90
useHasRowCallbackFunction · 0.70
NewIdFunction · 0.70
getRowMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…