Skip to content

Commit

Permalink
remove calls to getServerSnapshot
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TkDodo committed Mar 26, 2022
1 parent 9d702a3 commit eabcd46
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/devtools/devtools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ const useSubscribeToQueryCache = <T,>(
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
[queryCache]
),
getSnapshot,
getSnapshot
)
}
Expand Down
1 change: 0 additions & 1 deletion src/reactjs/useBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export function useBaseQuery<
: observer.subscribe(notifyManager.batchCalls(onStoreChange)),
[observer, isHydrating]
),
() => observer.getCurrentResult(),
() => observer.getCurrentResult()
)

Expand Down
1 change: 0 additions & 1 deletion src/reactjs/useIsFetching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function useIsFetching(
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
[queryCache]
),
() => queryClient.isFetching(filters),
() => queryClient.isFetching(filters)
)
}
1 change: 0 additions & 1 deletion src/reactjs/useIsMutating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function useIsMutating(
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
[queryCache]
),
() => queryClient.isMutating(filters),
() => queryClient.isMutating(filters)
)
}
1 change: 0 additions & 1 deletion src/reactjs/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export function useMutation<
observer.subscribe(notifyManager.batchCalls(onStoreChange)),
[observer]
),
() => observer.getCurrentResult(),
() => observer.getCurrentResult()
)

Expand Down
1 change: 0 additions & 1 deletion src/reactjs/useQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export function useQueries<T extends any[]>({
: observer.subscribe(notifyManager.batchCalls(onStoreChange)),
[observer, isHydrating]
),
() => observer.getCurrentResult(),
() => observer.getCurrentResult()
)

Expand Down

0 comments on commit eabcd46

Please sign in to comment.