Skip to content

Commit

Permalink
docs(useQuery): remove reference to setQueryData from onSuccess doc (
Browse files Browse the repository at this point in the history
…#4585)

onSuccess ISN'T called after setQueryData since
PR #2969
  • Loading branch information
jmlee2k committed Dec 2, 2022
1 parent 24ac9f9 commit 5ebc68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-core/src/types.ts
Expand Up @@ -203,7 +203,7 @@ export interface QueryObserverOptions<
*/
notifyOnChangeProps?: Array<keyof InfiniteQueryObserverResult> | 'all'
/**
* This callback will fire any time the query successfully fetches new data or the cache is updated via `setQueryData`.
* This callback will fire any time the query successfully fetches new data.
*/
onSuccess?: (data: TData) => void
/**
Expand Down

0 comments on commit 5ebc68a

Please sign in to comment.