From eabcd4667523fbe44497a5e56815c9aa9b894f6a Mon Sep 17 00:00:00 2001 From: Dominik Dorfmeister Date: Sat, 26 Mar 2022 08:35:12 +0100 Subject: [PATCH] remove calls to getServerSnapshot it's optional and we don't do anything meaningful as of now in it; will need to re-add it once we do react18 hydration --- src/devtools/devtools.tsx | 1 - src/reactjs/useBaseQuery.ts | 1 - src/reactjs/useIsFetching.ts | 1 - src/reactjs/useIsMutating.ts | 1 - src/reactjs/useMutation.ts | 1 - src/reactjs/useQueries.ts | 1 - 6 files changed, 6 deletions(-) diff --git a/src/devtools/devtools.tsx b/src/devtools/devtools.tsx index 34a1ac8f9b..ba76234dc4 100644 --- a/src/devtools/devtools.tsx +++ b/src/devtools/devtools.tsx @@ -398,7 +398,6 @@ const useSubscribeToQueryCache = ( queryCache.subscribe(notifyManager.batchCalls(onStoreChange)), [queryCache] ), - getSnapshot, getSnapshot ) } diff --git a/src/reactjs/useBaseQuery.ts b/src/reactjs/useBaseQuery.ts index 8726387657..843e6fe1a2 100644 --- a/src/reactjs/useBaseQuery.ts +++ b/src/reactjs/useBaseQuery.ts @@ -86,7 +86,6 @@ export function useBaseQuery< : observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer, isHydrating] ), - () => observer.getCurrentResult(), () => observer.getCurrentResult() ) diff --git a/src/reactjs/useIsFetching.ts b/src/reactjs/useIsFetching.ts index 2fe9554cb2..e0de200397 100644 --- a/src/reactjs/useIsFetching.ts +++ b/src/reactjs/useIsFetching.ts @@ -29,7 +29,6 @@ export function useIsFetching( queryCache.subscribe(notifyManager.batchCalls(onStoreChange)), [queryCache] ), - () => queryClient.isFetching(filters), () => queryClient.isFetching(filters) ) } diff --git a/src/reactjs/useIsMutating.ts b/src/reactjs/useIsMutating.ts index 51b477a8dd..a27c294893 100644 --- a/src/reactjs/useIsMutating.ts +++ b/src/reactjs/useIsMutating.ts @@ -34,7 +34,6 @@ export function useIsMutating( queryCache.subscribe(notifyManager.batchCalls(onStoreChange)), [queryCache] ), - () => queryClient.isMutating(filters), () => queryClient.isMutating(filters) ) } diff --git a/src/reactjs/useMutation.ts b/src/reactjs/useMutation.ts index 4a10b87d02..5bbd8e5b26 100644 --- a/src/reactjs/useMutation.ts +++ b/src/reactjs/useMutation.ts @@ -96,7 +96,6 @@ export function useMutation< observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer] ), - () => observer.getCurrentResult(), () => observer.getCurrentResult() ) diff --git a/src/reactjs/useQueries.ts b/src/reactjs/useQueries.ts index 95a29d1775..30635a2db7 100644 --- a/src/reactjs/useQueries.ts +++ b/src/reactjs/useQueries.ts @@ -175,7 +175,6 @@ export function useQueries({ : observer.subscribe(notifyManager.batchCalls(onStoreChange)), [observer, isHydrating] ), - () => observer.getCurrentResult(), () => observer.getCurrentResult() )