Skip to content

Commit

Permalink
chore(query-core): add deprecated hint for isDataEqual (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini-ghost committed Sep 5, 2023
1 parent ef5125f commit 716c5d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/query-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export interface QueryOptions<
retryDelay?: RetryDelayValue<TError>
networkMode?: NetworkMode
cacheTime?: number
/**
* @deprecated This callback will be removed in the next major version. You can achieve the same functionality by passing a function to `structuralSharing` instead.
*/
isDataEqual?: (oldData: TData | undefined, newData: TData) => boolean
queryFn?: QueryFunction<TQueryFnData, TQueryKey>
queryHash?: string
Expand Down

0 comments on commit 716c5d8

Please sign in to comment.