@trpc/react-query 11.0.0-rc.659 → 11.0.0-rc.660

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": 43687,
3
- "bundleOrigSize": 91731,
4
- "bundleReduction": 52.37,
2
+ "bundleSize": 43691,
3
+ "bundleOrigSize": 91742,
4
+ "bundleReduction": 52.38,
5
5
  "modules": [
6
6
  {
7
7
  "id": "/src/shared/hooks/createHooksInternal.tsx",
8
- "size": 19125,
9
- "origSize": 21075,
8
+ "size": 19129,
9
+ "origSize": 21086,
10
10
  "renderedExports": [
11
11
  "createRootHooks"
12
12
  ],
@@ -15,7 +15,7 @@
15
15
  "/src/createTRPCReact.tsx"
16
16
  ],
17
17
  "percent": 43.78,
18
- "reduction": 9.25
18
+ "reduction": 9.28
19
19
  },
20
20
  {
21
21
  "id": "/src/utils/createUtilityFunctions.ts",
@@ -43,7 +43,7 @@
43
43
  "dependents": [
44
44
  "/src/server/index.ts"
45
45
  ],
46
- "percent": 9.09,
46
+ "percent": 9.08,
47
47
  "reduction": 35.21
48
48
  },
49
49
  {
@@ -233,7 +233,7 @@ const trackResult = (result, onTrackResult)=>{
233
233
  const addTrackedProp = React__namespace.useCallback((key)=>{
234
234
  trackedProps.current.add(key);
235
235
  }, []);
236
- const currentSubscriptionRef = React__namespace.useRef();
236
+ const currentSubscriptionRef = React__namespace.useRef(null);
237
237
  const reset = React__namespace.useCallback(()=>{
238
238
  // unsubscribe from the previous subscription
239
239
  currentSubscriptionRef.current?.();
@@ -212,7 +212,7 @@ const trackResult = (result, onTrackResult)=>{
212
212
  const addTrackedProp = React.useCallback((key)=>{
213
213
  trackedProps.current.add(key);
214
214
  }, []);
215
- const currentSubscriptionRef = React.useRef();
215
+ const currentSubscriptionRef = React.useRef(null);
216
216
  const reset = React.useCallback(()=>{
217
217
  // unsubscribe from the previous subscription
218
218
  currentSubscriptionRef.current?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trpc/react-query",
3
- "version": "11.0.0-rc.659+55743e044",
3
+ "version": "11.0.0-rc.660+74625d5e4",
4
4
  "description": "The tRPC React library",
5
5
  "author": "KATT",
6
6
  "license": "MIT",
@@ -65,24 +65,24 @@
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@tanstack/react-query": "^5.59.15",
68
- "@trpc/client": "11.0.0-rc.659+55743e044",
69
- "@trpc/server": "11.0.0-rc.659+55743e044",
68
+ "@trpc/client": "11.0.0-rc.660+74625d5e4",
69
+ "@trpc/server": "11.0.0-rc.660+74625d5e4",
70
70
  "react": ">=18.2.0",
71
71
  "react-dom": ">=18.2.0",
72
72
  "typescript": ">=5.6.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@tanstack/react-query": "^5.59.15",
76
- "@trpc/client": "11.0.0-rc.659+55743e044",
77
- "@trpc/server": "11.0.0-rc.659+55743e044",
76
+ "@trpc/client": "11.0.0-rc.660+74625d5e4",
77
+ "@trpc/server": "11.0.0-rc.660+74625d5e4",
78
78
  "@types/express": "^4.17.17",
79
79
  "@types/node": "^22.9.0",
80
- "@types/react": "^18.3.1",
80
+ "@types/react": "^19.0.0",
81
81
  "eslint": "^9.13.0",
82
82
  "express": "^4.17.1",
83
83
  "next": "^15.0.4",
84
- "react": "^18.3.1",
85
- "react-dom": "^18.3.1",
84
+ "react": "^19.0.0",
85
+ "react-dom": "^19.0.0",
86
86
  "rollup": "^4.24.4",
87
87
  "tslib": "^2.8.1",
88
88
  "tsx": "^4.0.0",
@@ -95,5 +95,5 @@
95
95
  "funding": [
96
96
  "https://trpc.io/sponsor"
97
97
  ],
98
- "gitHead": "55743e044841a2b71280bb3772125f3a9173e961"
98
+ "gitHead": "74625d5e4d08cc7c2c4dd466cc88af6392c5265c"
99
99
  }
@@ -368,7 +368,7 @@ export function createRootHooks<
368
368
  }, []);
369
369
 
370
370
  type Unsubscribe = () => void;
371
- const currentSubscriptionRef = React.useRef<Unsubscribe>();
371
+ const currentSubscriptionRef = React.useRef<Unsubscribe | null>(null);
372
372
 
373
373
  const reset = React.useCallback((): void => {
374
374
  // unsubscribe from the previous subscription