@trpc/react-query 11.0.0-rc.329 → 11.0.0-rc.332

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.
@@ -1,12 +1,12 @@
1
1
  {
2
- "bundleSize": 28132,
3
- "bundleOrigSize": 61333,
4
- "bundleReduction": 54.13,
2
+ "bundleSize": 28143,
3
+ "bundleOrigSize": 61344,
4
+ "bundleReduction": 54.12,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
8
- "size": 12826,
9
- "origSize": 14879,
8
+ "size": 12837,
9
+ "origSize": 14890,
10
10
  "renderedExports": [
11
11
  "createRootHooks"
12
12
  ],
@@ -14,8 +14,8 @@
14
14
  "dependents": [
15
15
  "/src/createTRPCReact.tsx"
16
16
  ],
17
- "percent": 45.59,
18
- "reduction": 13.8
17
+ "percent": 45.61,
18
+ "reduction": 13.79
19
19
  },
20
20
  {
21
21
  "id": "/src/server/ssgProxy.ts",
@@ -28,7 +28,7 @@
28
28
  "dependents": [
29
29
  "/src/server/index.ts"
30
30
  ],
31
- "percent": 13.06,
31
+ "percent": 13.05,
32
32
  "reduction": 50.38
33
33
  },
34
34
  {
@@ -43,7 +43,7 @@
43
43
  "/src/createTRPCQueryUtils.tsx",
44
44
  "/src/shared/hooks/createHooksInternal.tsx"
45
45
  ],
46
- "percent": 12.53,
46
+ "percent": 12.52,
47
47
  "reduction": 6.7
48
48
  },
49
49
  {
@@ -59,7 +59,7 @@
59
59
  "dependents": [
60
60
  "/src/shared/index.ts"
61
61
  ],
62
- "percent": 9.76,
62
+ "percent": 9.75,
63
63
  "reduction": 73.94
64
64
  },
65
65
  {
@@ -78,7 +78,7 @@
78
78
  "/src/shared/proxy/useQueriesProxy.ts",
79
79
  "/src/shared/hooks/createHooksInternal.tsx"
80
80
  ],
81
- "percent": 7.11,
81
+ "percent": 7.1,
82
82
  "reduction": 42.49
83
83
  },
84
84
  {
@@ -107,7 +107,7 @@
107
107
  "dependents": [
108
108
  "/src/shared/index.ts"
109
109
  ],
110
- "percent": 2.87,
110
+ "percent": 2.86,
111
111
  "reduction": 23.16
112
112
  },
113
113
  {
@@ -204,7 +204,7 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
204
204
  },
205
205
  onData: (data)=>{
206
206
  if (!isStopped) {
207
- opts.onData(data);
207
+ optsRef.current.onData(data);
208
208
  }
209
209
  },
210
210
  onError: (err)=>{
@@ -183,7 +183,7 @@ import { createUseQueries } from '../proxy/useQueriesProxy.mjs';
183
183
  },
184
184
  onData: (data)=>{
185
185
  if (!isStopped) {
186
- opts.onData(data);
186
+ optsRef.current.onData(data);
187
187
  }
188
188
  },
189
189
  onError: (err)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-rc.329+fdcb4a7d8",
3
+ "version": "11.0.0-rc.332+67c093749",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -58,15 +58,15 @@
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@tanstack/react-query": "^5.25.0",
61
- "@trpc/client": "11.0.0-rc.329+fdcb4a7d8",
62
- "@trpc/server": "11.0.0-rc.329+fdcb4a7d8",
61
+ "@trpc/client": "11.0.0-rc.332+67c093749",
62
+ "@trpc/server": "11.0.0-rc.332+67c093749",
63
63
  "react": ">=18.2.0",
64
64
  "react-dom": ">=18.2.0"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@tanstack/react-query": "^5.25.0",
68
- "@trpc/client": "11.0.0-rc.329+fdcb4a7d8",
69
- "@trpc/server": "11.0.0-rc.329+fdcb4a7d8",
68
+ "@trpc/client": "11.0.0-rc.332+67c093749",
69
+ "@trpc/server": "11.0.0-rc.332+67c093749",
70
70
  "@types/express": "^4.17.17",
71
71
  "@types/node": "^20.10.0",
72
72
  "@types/react": "^18.2.33",
@@ -85,5 +85,5 @@
85
85
  "funding": [
86
86
  "https://trpc.io/sponsor"
87
87
  ],
88
- "gitHead": "fdcb4a7d8168d19f9bcbc816b80db815b06a134c"
88
+ "gitHead": "67c093749590628118cbb68e8de52c15e4a7b126"
89
89
  }
@@ -300,7 +300,7 @@ export function createRootHooks<
300
300
  },
301
301
  onData: (data) => {
302
302
  if (!isStopped) {
303
- opts.onData(data);
303
+ optsRef.current.onData(data);
304
304
  }
305
305
  },
306
306
  onError: (err) => {