Skip to content

Commit 2e556e9

Browse files
committed
fix: issue in the client query object in the example app and update readme
1 parent 3fb4da0 commit 2e556e9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export const MyClientComponent: React.FC<React.PropsWithChildren> = (props) => {
155155
};
156156
```
157157

158+
> [!WARNING]
159+
> Do not forget to wrap your app with `<QueryClientProvider>`. See [installation instructions](https://tanstack.com/query/latest/docs/framework/react/installation) for more details.
160+
158161
## Use a router context
159162

160163
You can use a context object to pass data to all your endpoint callbacks.

example/trpc/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "client-only";
33
import { createTrpcQueryClient } from "../../src/create-trpc-query-client";
44
import { type AppRouter } from "./router";
55

6-
const url = "https://localhost:3000/api/trpc";
6+
const url = "http://localhost:3000/api/trpc";
77

88
export const clientTrpc = createTrpcQueryClient<AppRouter>({
99
url,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@creatorem/next-trpc",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/creatorem/next-trpc"

0 commit comments

Comments
 (0)