Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

perf(ui): disable trpc batching for scores.filterOptions (#2547)

Marc Klingen474634b63205
diff --git a/web/src/components/table/use-cases/scores.tsx b/web/src/components/table/use-cases/scores.tsx
index 04c9b58e0d..78fa35925c 100644
--- a/web/src/components/table/use-cases/scores.tsx
+++ b/web/src/components/table/use-cases/scores.tsx
@@ -117,9 +117,18 @@ export default function ScoresTable({
});
const totalCount = scores.data?.totalCount ?? 0;
- const filterOptions = api.scores.filterOptions.useQuery({
- projectId,
- });
+ const filterOptions = api.scores.filterOptions.useQuery(
+ {
+ projectId,
+ },
+ {
+ trpc: {
+ context: {
+ skipBatch: true,
+ },
+ },
+ },
+ );
const rawColumns: LangfuseColumnDef<ScoresTableRow>[] = [
{