Skip to content

Commit

Permalink
fix(solid-query): Prevent infinite refetch with Astro when initialDat…
Browse files Browse the repository at this point in the history
…a is provided (#7009)
  • Loading branch information
ardeora committed Mar 2, 2024
1 parent 62e8eb2 commit f1676dc
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 @@ -303,7 +303,7 @@ export function createBaseQuery<
)

createComputed(() => {
if (!isRestoring()) {
if (!isRestoring() && !isServer) {
refetch()
}
})
Expand Down

0 comments on commit f1676dc

Please sign in to comment.