File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
references/nextjs-realtime/src/app/batches/[id] Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22
33import { Card , CardContent } from "@/components/ui/card" ;
4- import { TriggerAuthContext , useBatch } from "@trigger.dev/react-hooks" ;
4+ import { TriggerAuthContext , useRealtimeBatch } from "@trigger.dev/react-hooks" ;
55import type { exampleTask } from "@/trigger/example" ;
66
77import { Badge } from "@/components/ui/badge" ;
@@ -117,7 +117,7 @@ export function BackgroundRunsTable({ runs }: { runs: TaskRunShape<typeof exampl
117117}
118118
119119function 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
You can’t perform that action at this time.
0 commit comments