Skip to content

Commit 0c21efa

Browse files
authored
test(e2e): Fix failing nextjs-t3 e2e test app (#15785)
trpc/trpc#6617 removed an unstable API we used in the app. I just switched it over to use the stable replacement
1 parent 79a3384 commit 0c21efa

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/e2e-tests/test-applications/nextjs-t3/src/trpc

1 file changed

+2
-2
lines changed

dev-packages/e2e-tests/test-applications/nextjs-t3/src/trpc/react.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import { type QueryClient, QueryClientProvider } from '@tanstack/react-query';
4-
import { loggerLink, unstable_httpBatchStreamLink } from '@trpc/client';
4+
import { loggerLink, httpBatchStreamLink } from '@trpc/client';
55
import { createTRPCReact } from '@trpc/react-query';
66
import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server';
77
import { useState } from 'react';
@@ -46,7 +46,7 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) {
4646
enabled: op =>
4747
process.env.NODE_ENV === 'development' || (op.direction === 'down' && op.result instanceof Error),
4848
}),
49-
unstable_httpBatchStreamLink({
49+
httpBatchStreamLink({
5050
transformer: SuperJSON,
5151
url: getBaseUrl() + '/api/trpc',
5252
headers: () => {

0 commit comments

Comments
 (0)