@trpc/next 10.0.0-alpha.32 → 10.0.0-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -240,7 +240,7 @@ function withTRPC(opts) {
240
240
 
241
241
  function setupTRPC(opts) {
242
242
  var hooks = react.createReactQueryHooks();
243
- var proxy = react.createReactQueryProxy(); // TODO: maybe set TSSRContext to `never` when using `WithTRPCNoSSROptions`
243
+ var proxy = react.createReactQueryProxy(hooks); // TODO: maybe set TSSRContext to `never` when using `WithTRPCNoSSROptions`
244
244
 
245
245
  var _withTRPC = withTRPC(opts);
246
246
 
package/dist/index.mjs CHANGED
@@ -226,7 +226,7 @@ function withTRPC(opts) {
226
226
 
227
227
  function setupTRPC(opts) {
228
228
  var hooks = createReactQueryHooks();
229
- var proxy = createReactQueryProxy(); // TODO: maybe set TSSRContext to `never` when using `WithTRPCNoSSROptions`
229
+ var proxy = createReactQueryProxy(hooks); // TODO: maybe set TSSRContext to `never` when using `WithTRPCNoSSROptions`
230
230
 
231
231
  var _withTRPC = withTRPC(opts);
232
232
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/next",
3
- "version": "10.0.0-alpha.32",
3
+ "version": "10.0.0-alpha.35",
4
4
  "description": "tRPC Next lib",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -38,9 +38,9 @@
38
38
  }
39
39
  },
40
40
  "peerDependencies": {
41
- "@trpc/client": "10.0.0-alpha.32",
42
- "@trpc/react": "10.0.0-alpha.32",
43
- "@trpc/server": "10.0.0-alpha.32",
41
+ "@trpc/client": "10.0.0-alpha.35",
42
+ "@trpc/react": "10.0.0-alpha.35",
43
+ "@trpc/server": "10.0.0-alpha.35",
44
44
  "next": "*",
45
45
  "react": ">=16.8.0",
46
46
  "react-dom": ">=16.8.0",
@@ -51,9 +51,9 @@
51
51
  "react-ssr-prepass": "^1.5.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@trpc/client": "10.0.0-alpha.32",
55
- "@trpc/react": "10.0.0-alpha.32",
56
- "@trpc/server": "10.0.0-alpha.32",
54
+ "@trpc/client": "10.0.0-alpha.35",
55
+ "@trpc/react": "10.0.0-alpha.35",
56
+ "@trpc/server": "10.0.0-alpha.35",
57
57
  "@types/express": "^4.17.12",
58
58
  "express": "^4.17.1",
59
59
  "next": "^12.1.6",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "71757fddbbfd69453ecab6faa20a7a238856263d"
68
+ "gitHead": "4295407b073ffa1359f1d16315d6a95af25fd496"
69
69
  }
package/src/setupNext.tsx CHANGED
@@ -8,7 +8,7 @@ export function setupTRPC<
8
8
  TSSRContext extends NextPageContext = NextPageContext,
9
9
  >(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>) {
10
10
  const hooks = createReactQueryHooks<TRouter, TSSRContext>();
11
- const proxy = createReactQueryProxy<TRouter, TSSRContext>();
11
+ const proxy = createReactQueryProxy<TRouter, TSSRContext>(hooks);
12
12
 
13
13
  // TODO: maybe set TSSRContext to `never` when using `WithTRPCNoSSROptions`
14
14
  const _withTRPC = withTRPC<TRouter, TSSRContext>(opts);