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

Function updateFile

src/hooks/useFileEdit.ts:35–41  ·  view source on GitHub ↗
(id: string, query: string)

Source from the content-addressed store, hash-verified

33 .then(res => res.data.data);
34
35const updateFile = async (id: string, query: string) => {
36 await fetcher(query)
37 const { publishFile } = await customFetcher<PublishFileResponse>(generatePublishQuery(id)).then(res => res.data.data)
38 return {
39 slug: publishFile?.slug,
40 }
41}
42
43export function useEditFile() {
44 const queryClient = useQueryClient()

Callers 1

useEditFileFunction · 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…