Skip to content

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

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

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