Skip to content

Commit 716c5d8

Browse files
authoredSep 5, 2023
chore(query-core): add deprecated hint for isDataEqual (#5962)
1 parent ef5125f commit 716c5d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎packages/query-core/src/types.ts

+3
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export interface QueryOptions<
7676
retryDelay?: RetryDelayValue<TError>
7777
networkMode?: NetworkMode
7878
cacheTime?: number
79+
/**
80+
* @deprecated This callback will be removed in the next major version. You can achieve the same functionality by passing a function to `structuralSharing` instead.
81+
*/
7982
isDataEqual?: (oldData: TData | undefined, newData: TData) => boolean
8083
queryFn?: QueryFunction<TQueryFnData, TQueryKey>
8184
queryHash?: string

0 commit comments

Comments
 (0)
Please sign in to comment.