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

Function useCreateFile

src/hooks/useCreateFile.ts:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29export function useCreateFile() {
30 const { data, isLoading, isError, isSuccess, mutate } = useMutation(
31 (mutation: CreateFilePayload) => createAndPublishFile(mutation)
32 );
33
34 return {
35 mutate,
36 isSuccess,
37 data,
38 isLoading,
39 isError
40 }
41}

Callers 1

ModalNewFileFunction · 0.90

Calls 1

createAndPublishFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…