MCPcopy Create free account
hub / github.com/block/buzz / useProjectQuery

Function useProjectQuery

desktop/src/features/projects/hooks.ts:601–607  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

599}
600
601export function useProjectQuery(projectId: string) {
602 return useQuery({
603 queryKey: ["project", projectId],
604 queryFn: () => fetchProject(projectId),
605 staleTime: 60_000,
606 });
607}
608
609export function useRepoStateQuery(project: Project | null | undefined) {
610 return useQuery({

Callers 1

ProjectDetailScreenFunction · 0.90

Calls 1

fetchProjectFunction · 0.85

Tested by

no test coverage detected