MCPcopy Create free account
hub / github.com/agent-tower/core / useRefreshFileTree

Function useRefreshFileTree

packages/web/src/hooks/use-files.ts:84–90  ·  view source on GitHub ↗
(workingDir: string | undefined)

Source from the content-addressed store, hash-verified

82}
83
84export function useRefreshFileTree(workingDir: string | undefined) {
85 const queryClient = useQueryClient()
86 return useCallback(() => {
87 if (!workingDir) return
88 queryClient.invalidateQueries({ queryKey: ['files', 'tree', workingDir] })
89 }, [queryClient, workingDir])
90}
91
92export function useSaveFile() {
93 const queryClient = useQueryClient()

Callers 1

FileTreeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected