MCPcopy
hub / github.com/tone-row/flowchart-fun / useDocDetails

Function useDocDetails

app/src/lib/useDoc.ts:81–86  ·  view source on GitHub ↗
(
  prop: K,
  fallback?: Details[K]
)

Source from the content-addressed store, hash-verified

79 * of the doc details
80 */
81export function useDocDetails<K extends keyof Details>(
82 prop: K,
83 fallback?: Details[K]
84) {
85 return useDoc((state) => state.details[prop] || fallback) as Details[K];
86}
87
88// For E2E tests, let's put a __set_text function in the global scope
89// that will set the text of the doc

Callers 6

ShareDialogFunction · 0.90
HostedOptionsFunction · 0.90
JSONCanvasShareFunction · 0.90
FlowchartHeaderFunction · 0.90
RenameButton.tsxFile · 0.90
useDownloadFilenameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected