// /app/queue/components/list.tsx
"use client";
import { api } from "~/trpc/react";
export default function QueueList() {
// I also get the same error with {data} = (...).useQuery
const [data] = api.queue.getList.useSuspenseQuery(
{
status: "pending",
},
{
refetchInterval: 5 * 1000,
},
);
return <h1>Test</h1>;
}
// /app/queue/components/list.tsx
"use client";
import { api } from "~/trpc/react";
export default function QueueList() {
// I also get the same error with {data} = (...).useQuery
const [data] = api.queue.getList.useSuspenseQuery(
{
status: "pending",
},
{
refetchInterval: 5 * 1000,
},
);
return <h1>Test</h1>;
}