We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f65345 commit 5b6765aCopy full SHA for 5b6765a
packages/solid-query/src/useBaseQuery.ts
@@ -116,7 +116,11 @@ export function useBaseQuery<
116
) {
117
type ResourceData = QueryObserverResult<TData, TError>
118
119
- const client = createMemo(() => useQueryClient(queryClient?.()))
+ const client = createMemo(
120
+ () => useQueryClient(queryClient?.()),
121
+ useQueryClient(queryClient?.()),
122
+ )
123
+
124
const isRestoring = useIsRestoring()
125
// There are times when we run a query on the server but the resource is never read
126
// This could lead to times when the queryObserver is unsubscribed before the resource has loaded
0 commit comments