From 599baa884103b69d83855bb0320bc1aa49f2b810 Mon Sep 17 00:00:00 2001 From: Timo Stamm Date: Mon, 8 Jul 2024 16:04:01 +0200 Subject: [PATCH] Fix variable name in README.md (#385) Thanks to @alexongh for spotting the typo. Signed-off-by: Timo Stamm --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7839f8f8..0f732c45 100644 --- a/README.md +++ b/README.md @@ -155,11 +155,11 @@ import { TransportProvider } from "@connectrpc/connect-query"; const queryClient = new QueryClient(); -export const App() { +export const App = () => { const transport = createConnectTransport({ baseUrl: "", interceptors: [(next) => (request) => { - req.header.append("some-new-header", "some-value"); + request.header.append("some-new-header", "some-value"); // Add your headers here return next(request); }],