MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / fetchAllSectionCount

Function fetchAllSectionCount

lib/hooks/useDocumentsLoader.ts:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 const [docs, setDocs] = useState<Document[]>([]);
20
21 const fetchAllSectionCount = async () => {
22 const { data } = await supabase.rpc("get_all_page_section_counts");
23 if (data) {
24 setAllDocumentCount(data);
25 }
26 };
27
28 const deleteDocument = async (document: Document) => {
29 const documentChunkIds = document.docChunks.map((docChunk) =>

Callers 1

ChatToDocsPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected