@tanstack/solid-query 5.40.1 → 5.40.2

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/build/dev.cjs CHANGED
@@ -166,7 +166,7 @@ function createBaseQuery(options, Observer, queryClient) {
166
166
  if (typeof v === "function") {
167
167
  v = v(unwrapped);
168
168
  }
169
- if (v.hydrationData) {
169
+ if (v?.hydrationData) {
170
170
  const { hydrationData, ...rest } = v;
171
171
  v = rest;
172
172
  }
package/build/dev.js CHANGED
@@ -165,7 +165,7 @@ function createBaseQuery(options, Observer, queryClient) {
165
165
  if (typeof v === "function") {
166
166
  v = v(unwrapped);
167
167
  }
168
- if (v.hydrationData) {
168
+ if (v?.hydrationData) {
169
169
  const { hydrationData, ...rest } = v;
170
170
  v = rest;
171
171
  }
package/build/index.cjs CHANGED
@@ -157,7 +157,7 @@ function createBaseQuery(options, Observer, queryClient) {
157
157
  if (typeof v === "function") {
158
158
  v = v(unwrapped);
159
159
  }
160
- if (v.hydrationData) {
160
+ if (v?.hydrationData) {
161
161
  const { hydrationData, ...rest } = v;
162
162
  v = rest;
163
163
  }
package/build/index.js CHANGED
@@ -156,7 +156,7 @@ function createBaseQuery(options, Observer, queryClient) {
156
156
  if (typeof v === "function") {
157
157
  v = v(unwrapped);
158
158
  }
159
- if (v.hydrationData) {
159
+ if (v?.hydrationData) {
160
160
  const { hydrationData, ...rest } = v;
161
161
  v = rest;
162
162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/solid-query",
3
- "version": "5.40.1",
3
+ "version": "5.40.2",
4
4
  "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -208,7 +208,7 @@ export function createBaseQuery<
208
208
  }
209
209
  // Hydration data exists on first load after SSR,
210
210
  // and should be removed from the observer result
211
- if (v.hydrationData) {
211
+ if (v?.hydrationData) {
212
212
  const { hydrationData, ...rest } = v
213
213
  v = rest
214
214
  }