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

Function CloneTable

src/ui-solid-inspector/index.tsx:393–407  ·  view source on GitHub ↗
(props: OnDoneProp & TableProps)

Source from the content-addressed store, hash-verified

391};
392
393const CloneTable = (props: OnDoneProp & TableProps) => {
394 const store = useStoreOrStoreById(props.store)();
395 const has = useHasTableCallback(store);
396 return NewId({
397 onDone: props.onDone,
398 suggestedId: getNewIdFromSuggestedId(props.tableId, has),
399 has,
400 set: useSetTableCallback(
401 (tableId) => tableId,
402 (_, store) => store.getTable(props.tableId),
403 store,
404 ),
405 prompt: 'Clone table to',
406 });
407};
408
409const DeleteTable = (props: OnDoneProp & TableProps) =>
410 Delete({

Callers

nothing calls this directly

Calls 6

useStoreOrStoreByIdFunction · 0.90
getNewIdFromSuggestedIdFunction · 0.90
useSetTableCallbackFunction · 0.90
useHasTableCallbackFunction · 0.70
NewIdFunction · 0.70
getTableMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…