From df8aa2b9ec6ca30255aaa04d3a5968128575c842 Mon Sep 17 00:00:00 2001 From: OrJDev Date: Tue, 1 Nov 2022 15:27:47 +0200 Subject: [PATCH] pass SolidQueryContext to useQueryClient in useMutation --- package.json | 2 +- src/shared/hooks/createHooksInternal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bd36a9c..a47b360 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "SolidJS tRPC", "author": "OrJDev", "license": "MIT", - "version": "0.0.2-rc.1", + "version": "0.0.3-rc.1", "publishConfig": { "access": "public", "tag": "next" diff --git a/src/shared/hooks/createHooksInternal.tsx b/src/shared/hooks/createHooksInternal.tsx index 9081c3e..27f06fc 100644 --- a/src/shared/hooks/createHooksInternal.tsx +++ b/src/shared/hooks/createHooksInternal.tsx @@ -441,7 +441,7 @@ export function createHooksInternal< TContext > { const ctx = useContext(); - const queryClient = useQueryClient(); + const queryClient = useQueryClient({ context: SolidQueryContext }); const hook = __useMutation( (input) => {