Skip to content

Commit f45382a

Browse files
committed
Use the new hook name in the nextjs-realtime ref
1 parent 01a4e64 commit f45382a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

references/nextjs-realtime/src/app/batches/[id]/ClientBatchRunDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { Card, CardContent } from "@/components/ui/card";
4-
import { TriggerAuthContext, useBatch } from "@trigger.dev/react-hooks";
4+
import { TriggerAuthContext, useRealtimeBatch } from "@trigger.dev/react-hooks";
55
import type { exampleTask } from "@/trigger/example";
66

77
import { Badge } from "@/components/ui/badge";
@@ -117,7 +117,7 @@ export function BackgroundRunsTable({ runs }: { runs: TaskRunShape<typeof exampl
117117
}
118118

119119
function BatchRunTableWrapper({ batchId }: { batchId: string }) {
120-
const { runs, error } = useBatch<typeof exampleTask>(batchId);
120+
const { runs, error } = useRealtimeBatch<typeof exampleTask>(batchId);
121121

122122
console.log(runs);
123123

0 commit comments

Comments
 (0)