Skip to content

Commit eabcd46

Browse files
committed
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
1 parent 9d702a3 commit eabcd46

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

src/devtools/devtools.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ const useSubscribeToQueryCache = <T,>(
398398
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
399399
[queryCache]
400400
),
401-
getSnapshot,
402401
getSnapshot
403402
)
404403
}

src/reactjs/useBaseQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export function useBaseQuery<
8686
: observer.subscribe(notifyManager.batchCalls(onStoreChange)),
8787
[observer, isHydrating]
8888
),
89-
() => observer.getCurrentResult(),
9089
() => observer.getCurrentResult()
9190
)
9291

src/reactjs/useIsFetching.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export function useIsFetching(
2929
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
3030
[queryCache]
3131
),
32-
() => queryClient.isFetching(filters),
3332
() => queryClient.isFetching(filters)
3433
)
3534
}

src/reactjs/useIsMutating.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export function useIsMutating(
3434
queryCache.subscribe(notifyManager.batchCalls(onStoreChange)),
3535
[queryCache]
3636
),
37-
() => queryClient.isMutating(filters),
3837
() => queryClient.isMutating(filters)
3938
)
4039
}

src/reactjs/useMutation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export function useMutation<
9696
observer.subscribe(notifyManager.batchCalls(onStoreChange)),
9797
[observer]
9898
),
99-
() => observer.getCurrentResult(),
10099
() => observer.getCurrentResult()
101100
)
102101

src/reactjs/useQueries.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ export function useQueries<T extends any[]>({
175175
: observer.subscribe(notifyManager.batchCalls(onStoreChange)),
176176
[observer, isHydrating]
177177
),
178-
() => observer.getCurrentResult(),
179178
() => observer.getCurrentResult()
180179
)
181180

0 commit comments

Comments
 (0)