Skip to content

Commit

Permalink
fix(solid-query): Retry query on client when SSR query fails
Browse files Browse the repository at this point in the history
  • Loading branch information
BierDav authored Jun 8, 2024
1 parent 7110ea3 commit de0f306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid-query/src/createBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function createBaseQuery<
}
// Hydration data exists on first load after SSR,
// and should be removed from the observer result
if (v.hydrationData) {
if (v?.hydrationData) {
const { hydrationData, ...rest } = v
v = rest
}
Expand Down

0 comments on commit de0f306

Please sign in to comment.