ianI
Convex Community2y ago
2 replies
ian

Why is the useQuery from "convex-helpers/react" named the same

I just added a long-requested helper: a useQuery that matches the TanStack Query return type:
import { useQuery } from "convex-helpers/react";

  const { status, data, error } = useQuery(api.foo.bar, args);

also with booleans if you prefer:
  const { data, error, isSuccess, isPending, isError } = useQuery(api.foo.bar, args);

Available in convex-helpers@0.1.40
Was this page helpful?