Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
288 B
Raw Blame
import { queryOptions } from "@tanstack/react-query";
import { api } from "@/data/api";

export const squadListOptions = (wsId: string | null) =>
  queryOptions({
    queryKey: ["squads", wsId] as const,
    queryFn: ({ signal }) => api.listSquads({ signal }),
    enabled: !!wsId,
  });