MCPcopy Create free account
hub / github.com/Fernanda-Kipper/text-editor / updateFile

Function updateFile

src/hooks/useFileDelete.ts:22–28  ·  view source on GitHub ↗
(id: string, query: string)

Source from the content-addressed store, hash-verified

20 .then(res => res.data.data);
21
22const updateFile = async (id: string, query: string) => {
23 await fetcher(query)
24 const { publishFile } = await customFetcher<PublishFileResponse>(generatePublishQuery(id)).then(res => res.data.data)
25 return {
26 slug: publishFile?.slug,
27 }
28}
29
30export function useFileDelete(){
31 const queryClient = useQueryClient()

Callers 1

useFileDeleteFunction · 0.70

Calls 2

generatePublishQueryFunction · 0.90
fetcherFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…