Skip to content

Commit 1aaca28

Browse files
authored
docs: Extend type description of useQuery's onSuccess (TanStack#2836)
1 parent 020bb92 commit 1aaca28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export interface QueryObserverOptions<
165165
*/
166166
notifyOnChangePropsExclusions?: Array<keyof InfiniteQueryObserverResult>
167167
/**
168-
* This callback will fire any time the query successfully fetches new data.
168+
* This callback will fire any time the query successfully fetches new data or the cache is updated via `setQueryData`.
169169
*/
170170
onSuccess?: (data: TData) => void
171171
/**

0 commit comments

Comments
 (0)